mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
Do not cancel Alt+Tab grab due to modifier key events
If the user just presses a modifier (e.g., shift) during Alt+Tab grab, we need to keep the grab in place to allow the custom Alt+Tab handler to deal with what might simply be a change of tabbing direction. https://bugzilla.gnome.org/show_bug.cgi?id=613126
This commit is contained in:
parent
6b69acdf8b
commit
a125b0179a
@ -2109,6 +2109,16 @@ process_tab_grab (MetaDisplay *display,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case META_KEYBINDING_ACTION_NONE:
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* If this is simply user pressing the Shift key, we do not want
|
||||||
|
* to cancel the grab.
|
||||||
|
*/
|
||||||
|
if (is_modifier (display, event->xkey.keycode))
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user