[mutter/wip/gestures: 1/14] backend-x11: Remove pointless goto
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/gestures: 1/14] backend-x11: Remove pointless goto
- Date: Thu, 19 Jun 2014 21:45:32 +0000 (UTC)
commit 124b5e524c4502cb5a99ae8e042e10ca72aa4afd
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 19 21:10:09 2014 +0200
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.
src/backends/x11/meta-backend-x11.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/backends/x11/meta-backend-x11.c b/src/backends/x11/meta-backend-x11.c
index 7ebeda8..32b174d 100644
--- a/src/backends/x11/meta-backend-x11.c
+++ b/src/backends/x11/meta-backend-x11.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]