[gtk] Revert "broadway: Stop using configure events"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] Revert "broadway: Stop using configure events"
- Date: Mon, 16 Jul 2018 00:25:45 +0000 (UTC)
commit e2fd33f78a5bcd461139a32957abfeaa45fa3d2e
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 15 19:49:26 2018 -0400
Revert "broadway: Stop using configure events"
This reverts commit 9c827cbff4d7cd3e59fbfeb7ec5abe9c7dbf6bdb.
gdk/broadway/gdkeventsource.c | 13 ++++++++++---
1 file 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]