From 63bca17ab699b7924a71f30866dce33b44e25c49 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 7 Jul 2014 19:13:31 -0400 Subject: [PATCH] backend-x11: Only spoof the event when we're passing it to Clutter There's no need to do so otherwise. --- src/backends/x11/meta-backend-x11.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/backends/x11/meta-backend-x11.c b/src/backends/x11/meta-backend-x11.c index 7ebeda884..7fd619698 100644 --- a/src/backends/x11/meta-backend-x11.c +++ b/src/backends/x11/meta-backend-x11.c @@ -148,11 +148,12 @@ handle_host_xevent (MetaBackend *backend, } } - maybe_spoof_event_as_stage_event (x11, event); - out: if (!bypass_clutter) - clutter_x11_handle_event (event); + { + maybe_spoof_event_as_stage_event (x11, event); + clutter_x11_handle_event (event); + } XFreeEventData (priv->xdisplay, &event->xcookie); }