mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
backend-x11: Remove pointless goto
The function is not as complex as needing that, plus it always jumped anytime bypass_clutter is TRUE, so make all conditional code depend on that.
This commit is contained in:
parent
97f2de37e1
commit
7247b8d81b
@ -142,17 +142,14 @@ handle_host_xevent (MetaBackend *backend,
|
||||
MetaMonitorManager *manager = meta_backend_get_monitor_manager (backend);
|
||||
if (META_IS_MONITOR_MANAGER_XRANDR (manager) &&
|
||||
meta_monitor_manager_xrandr_handle_xevent (META_MONITOR_MANAGER_XRANDR (manager), event))
|
||||
{
|
||||
bypass_clutter = TRUE;
|
||||
goto out;
|
||||
}
|
||||
bypass_clutter = TRUE;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user