mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[client] wm/wayland: correctly handle double keyboard grab
When input:grabKeyboardOnFocus is set (default), entering capture mode grabs the keyboard a second time. This commit makes the second grab a no-op on Wayland to avoid a crash.
This commit is contained in:
parent
c650690bcc
commit
50c934db5a
@ -460,7 +460,7 @@ static void wmWaylandGrabKeyboard()
|
||||
{
|
||||
struct WMDataWayland * wm = g_wmState.opaque;
|
||||
|
||||
if (wm->keyboardInhibitManager)
|
||||
if (wm->keyboardInhibitManager && !wm->keyboardInhibitor)
|
||||
{
|
||||
wm->keyboardInhibitor = zwp_keyboard_shortcuts_inhibit_manager_v1_inhibit_shortcuts(
|
||||
wm->keyboardInhibitManager, wm->surface, wm->seat);
|
||||
|
Loading…
Reference in New Issue
Block a user