mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
gdkwindow-wayland: Another slight rearrange
This commit is contained in:
parent
ec7504fd57
commit
0bbe2589f6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user