gdkwindow-wayland: Another slight rearrange

This commit is contained in:
Jasper St. Pierre 2014-06-19 14:34:22 -04:00
parent ec7504fd57
commit 0bbe2589f6

View File

@ -599,8 +599,6 @@ gdk_wayland_window_configure (GdkWindow *window,
if (window->width == width && window->height == height)
return;
display = gdk_window_get_display (window);
event = gdk_event_new (GDK_CONFIGURE);
event->configure.window = g_object_ref (window);
event->configure.send_event = FALSE;
@ -610,6 +608,7 @@ gdk_wayland_window_configure (GdkWindow *window,
gdk_wayland_window_update_size (window, width, height);
_gdk_window_update_size (window);
display = gdk_window_get_display (window);
_gdk_wayland_display_deliver_event (display, event);
}
@ -831,13 +830,11 @@ xdg_surface_close (void *data,
GdkDisplay *display;
GdkEvent *event;
display = gdk_window_get_display (window);
event = gdk_event_new (GDK_DELETE);
event->any.window = window;
event->any.send_event = TRUE;
display = gdk_window_get_display (window);
_gdk_wayland_display_deliver_event (display, event);
}