Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/core/keybindings.c
Original file line number Diff line number Diff line change
Expand Up @@ -2358,11 +2358,17 @@ process_key_event (MetaDisplay *display,
{
if (process_modifier_only (display, event, window, &allow_key_up))
return TRUE;

if (process_iso_next_group (display, event))
return TRUE;
}

/* Under Wayland, xkbcommon has already switched the layout when the key
* was pressed, even during a grab such as a mouse window move. Tell the
* shell about it, or its idea of the current layout falls out of sync.
* Under X11 the handler may ungrab the keyboard, which would end the grab,
* so keep skipping it there. */
if ((!all_keys_grabbed || meta_is_wayland_compositor ()) &&
process_iso_next_group (display, event))
return TRUE;

{
MetaBackend *backend = meta_get_backend ();
if (META_IS_BACKEND_X11 (backend))
Expand Down