diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2019-08-22 16:34:58 +0300 |
---|---|---|
committer | Florian Müllner <florian.muellner@gmail.com> | 2019-08-23 14:54:20 +0000 |
commit | 8e13292d62460d0bc8a86be23bcd2ce868e8d0a3 (patch) | |
tree | 87e6a7328f68839b1bb4026902e30db42cd15289 /src | |
parent | 29ea5306ebdc4da198397d63d16ee9a1f0ae724a (diff) | |
download | mutter-8e13292d62460d0bc8a86be23bcd2ce868e8d0a3.tar.gz |
keybindings: Code cleanup
The boolean `handled` is not needed, remove it.
https://gitlab.gnome.org/GNOME/mutter/issues/734
Diffstat (limited to 'src')
-rw-r--r-- | src/core/keybindings.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 8e9016484..a5a60e8cd 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2212,21 +2212,17 @@ process_key_event (MetaDisplay *display, { gboolean keep_grab; gboolean all_keys_grabbed; - gboolean handled; all_keys_grabbed = window ? window->all_keys_grabbed : FALSE; if (!all_keys_grabbed) { - handled = process_overlay_key (display, event, window); - if (handled) + if (process_overlay_key (display, event, window)) return TRUE; - handled = process_locate_pointer_key (display, event, window); - if (handled) /* Continue with the event even if handled */ - return FALSE; + if (process_locate_pointer_key (display, event, window)) + return FALSE; /* Continue with the event even if handled */ - handled = process_iso_next_group (display, event); - if (handled) + if (process_iso_next_group (display, event)) return TRUE; } |