backend-x11: Only spoof the event when we're passing it to Clutter

There's no need to do so otherwise.
This commit is contained in:
Jasper St. Pierre 2014-07-07 19:13:31 -04:00
parent c2abe43ee7
commit 63bca17ab6

View File

@ -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);
}