[mutter] keybindings: Code cleanup
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [mutter] keybindings: Code cleanup
- Date: Fri, 23 Aug 2019 14:59:46 +0000 (UTC)
commit 8e13292d62460d0bc8a86be23bcd2ce868e8d0a3
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Thu Aug 22 16:34:58 2019 +0300
    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;
     }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]