keybindings: Code cleanup
The boolean `handled` is not needed, remove it. https://gitlab.gnome.org/GNOME/mutter/issues/734
This commit is contained in:
parent
29ea5306eb
commit
8e13292d62
@ -2212,21 +2212,17 @@ process_key_event (MetaDisplay *display,
|
|||||||
{
|
{
|
||||||
gboolean keep_grab;
|
gboolean keep_grab;
|
||||||
gboolean all_keys_grabbed;
|
gboolean all_keys_grabbed;
|
||||||
gboolean handled;
|
|
||||||
|
|
||||||
all_keys_grabbed = window ? window->all_keys_grabbed : FALSE;
|
all_keys_grabbed = window ? window->all_keys_grabbed : FALSE;
|
||||||
if (!all_keys_grabbed)
|
if (!all_keys_grabbed)
|
||||||
{
|
{
|
||||||
handled = process_overlay_key (display, event, window);
|
if (process_overlay_key (display, event, window))
|
||||||
if (handled)
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
handled = process_locate_pointer_key (display, event, window);
|
if (process_locate_pointer_key (display, event, window))
|
||||||
if (handled) /* Continue with the event even if handled */
|
return FALSE; /* Continue with the event even if handled */
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
handled = process_iso_next_group (display, event);
|
if (process_iso_next_group (display, event))
|
||||||
if (handled)
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user