summaryrefslogtreecommitdiff
path: root/gdk/broadway/gdkeventsource.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2017-11-23 10:22:23 +0100
committerAlexander Larsson <alexl@redhat.com>2017-11-23 10:48:29 +0100
commitcfb76fedb641a58d41efa01edf20ca480029030a (patch)
tree6190ff7d9a4962bf1fd9ff2dc50694a4e618038d /gdk/broadway/gdkeventsource.c
parent12d3cd8f29504b35c7bdf794b3dc8abf03f3f0f0 (diff)
downloadgtk+-cfb76fedb641a58d41efa01edf20ca480029030a.tar.gz
broadway: Roundtrip each update to rate limit redraw
Diffstat (limited to 'gdk/broadway/gdkeventsource.c')
-rw-r--r--gdk/broadway/gdkeventsource.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/broadway/gdkeventsource.c b/gdk/broadway/gdkeventsource.c
index 0935cc9261..2f51212ca8 100644
--- a/gdk/broadway/gdkeventsource.c
+++ b/gdk/broadway/gdkeventsource.c
@@ -21,6 +21,7 @@
#include "gdkdevicemanager-broadway.h"
#include "gdkinternals.h"
+#include "gdkframeclockprivate.h"
#include <stdlib.h>
@@ -336,6 +337,12 @@ _gdk_broadway_events_got_input (BroadwayInputMsg *message)
}
break;
+ case BROADWAY_EVENT_ROUNDTRIP_NOTIFY:
+ window = g_hash_table_lookup (display_broadway->id_ht, GINT_TO_POINTER (message->roundtrip_notify.id));
+ if (window)
+ _gdk_broadway_roundtrip_notify (window, message->roundtrip_notify.tag, message->roundtrip_notify.local);
+ break;
+
case BROADWAY_EVENT_DELETE_NOTIFY:
window = g_hash_table_lookup (display_broadway->id_ht, GINT_TO_POINTER (message->delete_notify.id));
if (window)