mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-04 01:34:13 +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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user