gdkwindow-wayland: Make function order match listener order

This commit is contained in:
Jasper St. Pierre 2014-02-06 14:28:51 -05:00
parent 1e8c803a93
commit e583e3ebce

View File

@ -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,