Commit e583e3eb authored by Jasper St. Pierre's avatar Jasper St. Pierre

gdkwindow-wayland: Make function order match listener order

parent 1e8c803a
......@@ -962,22 +962,6 @@ xdg_surface_configure (void *data,
gdk_wayland_window_configure (window, width, height, edges);
}
static void
xdg_surface_focused_set (void *data,
struct xdg_surface *xdg_surface)
{
GdkWindow *window = GDK_WINDOW (data);
gdk_synthesize_window_state (window, 0, GDK_WINDOW_STATE_FOCUSED);
}
static void
xdg_surface_focused_unset (void *data,
struct xdg_surface *xdg_surface)
{
GdkWindow *window = GDK_WINDOW (data);
gdk_synthesize_window_state (window, GDK_WINDOW_STATE_FOCUSED, 0);
}
static void
xdg_surface_request_set_fullscreen (void *data,
struct xdg_surface *xdg_surface)
......@@ -1010,6 +994,22 @@ xdg_surface_request_unset_maximized (void *data,
gdk_window_unmaximize (window);
}
static void
xdg_surface_focused_set (void *data,
struct xdg_surface *xdg_surface)
{
GdkWindow *window = GDK_WINDOW (data);
gdk_synthesize_window_state (window, 0, GDK_WINDOW_STATE_FOCUSED);
}
static void
xdg_surface_focused_unset (void *data,
struct xdg_surface *xdg_surface)
{
GdkWindow *window = GDK_WINDOW (data);
gdk_synthesize_window_state (window, GDK_WINDOW_STATE_FOCUSED, 0);
}
static const struct xdg_surface_listener xdg_surface_listener = {
xdg_surface_ping,
xdg_surface_configure,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment