From 8e13292d62460d0bc8a86be23bcd2ce868e8d0a3 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 22 Aug 2019 16:34:58 +0300 Subject: [PATCH] keybindings: Code cleanup The boolean `handled` is not needed, remove it. https://gitlab.gnome.org/GNOME/mutter/issues/734 --- src/core/keybindings.c | 12 ++++-------- 1 file 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; }