summaryrefslogtreecommitdiff
path: root/src/x11/events.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-09-27 21:31:33 +0200
committerCarlos Garnacho <carlosg@gnome.org>2023-02-23 17:19:22 +0100
commita799ac8ff0d965c346dea6af845722e59a0ffc02 (patch)
tree49ef87d78705677653c8aeeda0ca99ca3fa43291 /src/x11/events.c
parent45bda2d969f22b1028a1c0062e7f8554e475b23a (diff)
downloadmutter-a799ac8ff0d965c346dea6af845722e59a0ffc02.tar.gz
x11: Add public API to handle X11 events
This API will be used by GNOME Shell to handle X11 events in the relevant places, as a substitute to gdk_window_add_filter(). It is ATM still a bit ironic, since the Mutter X11 event handler is itself a GdkFilterFunc, but it may move away from that eventually. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2779>
Diffstat (limited to 'src/x11/events.c')
-rw-r--r--src/x11/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x11/events.c b/src/x11/events.c
index 89733ba33..bda06fbea 100644
--- a/src/x11/events.c
+++ b/src/x11/events.c
@@ -1923,6 +1923,8 @@ meta_x11_display_handle_xevent (MetaX11Display *x11_display,
meta_spew_event_print (x11_display, event);
#endif
+ meta_x11_display_run_event_funcs (x11_display, event);
+
if (meta_x11_startup_notification_handle_xevent (x11_display, event))
{
bypass_gtk = bypass_compositor = TRUE;