summaryrefslogtreecommitdiff
path: root/gdk/broadway/gdkeventsource.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-07-15 19:49:26 -0400
committerMatthias Clasen <mclasen@redhat.com>2018-07-15 20:23:45 -0400
commite2fd33f78a5bcd461139a32957abfeaa45fa3d2e (patch)
tree6a894a1798616ec0260f063a0f7ea233c5f4818e /gdk/broadway/gdkeventsource.c
parent89f25d14849f665c0c897972545bb2fb6081d523 (diff)
downloadgtk+-e2fd33f78a5bcd461139a32957abfeaa45fa3d2e.tar.gz
Revert "broadway: Stop using configure events"
This reverts commit 9c827cbff4d7cd3e59fbfeb7ec5abe9c7dbf6bdb.
Diffstat (limited to 'gdk/broadway/gdkeventsource.c')
-rw-r--r--gdk/broadway/gdkeventsource.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/gdk/broadway/gdkeventsource.c b/gdk/broadway/gdkeventsource.c
index a60df61712..0eb603a960 100644
--- a/gdk/broadway/gdkeventsource.c
+++ b/gdk/broadway/gdkeventsource.c
@@ -304,9 +304,16 @@ _gdk_broadway_events_got_input (BroadwayInputMsg *message)
{
surface->x = message->configure_notify.x;
surface->y = message->configure_notify.y;
- surface->width = message->configure_notify.width;
- surface->height = message->configure_notify.height;
- g_signal_emit_by_name (surface, "size-changed", surface->width, surface->height);
+
+ event = gdk_event_new (GDK_CONFIGURE);
+ event->any.surface = g_object_ref (surface);
+ event->configure.x = message->configure_notify.x;
+ event->configure.y = message->configure_notify.y;
+ event->configure.width = message->configure_notify.width;
+ event->configure.height = message->configure_notify.height;
+
+ node = _gdk_event_queue_append (display, event);
+ _gdk_windowing_got_event (display, node, event, message->base.serial);
if (surface->resize_count >= 1)
{