[gtk/inspector-menu-fix: 3/4] wayland: sanity check events at the source
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/inspector-menu-fix: 3/4] wayland: sanity check events at the source
- Date: Wed, 1 May 2019 20:55:54 +0000 (UTC)
commit 737400ddbca9cba0dd36e0991161a01977a7de37
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 1 20:39:44 2019 +0000
wayland: sanity check events at the source
Sanity check events before we throw them into
the event queue, as this makes it much easier
to track down the culprit.
gdk/wayland/gdkeventsource.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gdk/wayland/gdkeventsource.c b/gdk/wayland/gdkeventsource.c
index 69efb783f3..86c3f86484 100644
--- a/gdk/wayland/gdkeventsource.c
+++ b/gdk/wayland/gdkeventsource.c
@@ -151,6 +151,9 @@ _gdk_wayland_display_deliver_event (GdkDisplay *display,
{
GList *node;
+ if (!check_event_sanity (event))
+ g_warning ("Snap! delivering insane events\n");
+
node = _gdk_event_queue_append (display, event);
_gdk_windowing_got_event (display, node, event,
_gdk_display_get_next_serial (display));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]