diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-07-15 10:45:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-07-15 11:51:09 -0400 |
commit | a8926c9d873ce968353a2eb1d3930c4f1ac79c94 (patch) | |
tree | 5e5f7cfc0fcb9bcce6a0c1c8c0a2065223c37419 /gdk/wayland | |
parent | 443f8ddf6bbb15d4516bf2b5fd2c8b77fa10f840 (diff) | |
download | gtk+-a8926c9d873ce968353a2eb1d3930c4f1ac79c94.tar.gz |
gdk: Drop configure events
Replace configure events with a GdkSurface::size-changed signal.
This is part of the move to use events only for input.
Diffstat (limited to 'gdk/wayland')
-rw-r--r-- | gdk/wayland/gdksurface-wayland.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index 2aedc995d7..d2a18ea970 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -698,20 +698,9 @@ gdk_wayland_surface_configure (GdkSurface *surface, int height, int scale) { - GdkDisplay *display; - GdkEvent *event; - - event = gdk_event_new (GDK_CONFIGURE); - event->any.surface = g_object_ref (surface); - event->any.send_event = FALSE; - event->configure.width = width; - event->configure.height = height; - gdk_wayland_surface_update_size (surface, width, height, scale); _gdk_surface_update_size (surface); - - display = gdk_surface_get_display (surface); - _gdk_wayland_display_deliver_event (display, event); + g_signal_emit_by_name (surface, "size-changed", width, height); } static gboolean |