From 1040a7c168e6784614266d2d9552d420b0e7abdd Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Mon, 11 Jan 2021 19:14:59 -0500 Subject: [PATCH] [client] wm/wayland: don't grab keyboard This is unimplemented for Wayland, and only has the effect of confining the mouse. --- client/src/wm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/wm.c b/client/src/wm.c index 079843ec..864b9224 100644 --- a/client/src/wm.c +++ b/client/src/wm.c @@ -88,6 +88,9 @@ void wmGrabKeyboard() CurrentTime); break; + case SDL_SYSWM_WAYLAND: + break; + default: if (g_wmState.pointerGrabbed) SDL_SetWindowGrab(g_state.window, SDL_FALSE); @@ -113,6 +116,9 @@ void wmUngrabKeyboard() XUngrabKeyboard(g_state.wminfo.info.x11.display, CurrentTime); break; + case SDL_SYSWM_WAYLAND: + break; + default: SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "0"); SDL_SetWindowGrab(g_state.window, SDL_FALSE);