summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-07 18:02:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-08 15:22:03 -0400
commitbbb8c043234eea035e90c842a93c639d0cf44477 (patch)
treef3b5ddf5e687a0cc4a60c55419e7907cca791c8b
parent89a15f6d03fd465a5ff12ff33157c0e480f80920 (diff)
downloadgtk+-bbb8c043234eea035e90c842a93c639d0cf44477.tar.gz
wayland: bypass events for ::size-changed
This is a step towards getting rid of configure events altogether.
-rw-r--r--gdk/wayland/gdksurface-wayland.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index 742b992b2b..9444f46265 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -934,18 +934,13 @@ gdk_wayland_surface_resize (GdkSurface *surface,
int height,
int scale)
{
+ GdkWaylandSurface *impl = GDK_WAYLAND_SURFACE (surface);
+
gdk_wayland_surface_update_size (surface, width, height, scale);
_gdk_surface_update_size (surface);
- if (is_realized_shell_surface (surface))
- {
- GdkDisplay *display;
- GdkEvent *event;
-
- event = gdk_configure_event_new (surface, width, height);
- display = gdk_surface_get_display (surface);
- _gdk_wayland_display_deliver_event (display, event);
- }
+ if (impl->mapped)
+ g_signal_emit_by_name (surface, "size-changed", width, height);
}
static void gdk_wayland_surface_show (GdkSurface *surface,