keybindings: Code cleanup

The boolean `handled` is not needed, remove it.

https://gitlab.gnome.org/GNOME/mutter/issues/734
This commit is contained in:
Olivier Fourdan 2019-08-22 16:34:58 +03:00 committed by Florian Müllner
parent 29ea5306eb
commit 8e13292d62

View File

@ -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;
}