mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] wm/wayland: don't grab keyboard
This is unimplemented for Wayland, and only has the effect of confining the mouse.
This commit is contained in:
parent
a97332025c
commit
1040a7c168
@ -88,6 +88,9 @@ void wmGrabKeyboard()
|
|||||||
CurrentTime);
|
CurrentTime);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SDL_SYSWM_WAYLAND:
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (g_wmState.pointerGrabbed)
|
if (g_wmState.pointerGrabbed)
|
||||||
SDL_SetWindowGrab(g_state.window, SDL_FALSE);
|
SDL_SetWindowGrab(g_state.window, SDL_FALSE);
|
||||||
@ -113,6 +116,9 @@ void wmUngrabKeyboard()
|
|||||||
XUngrabKeyboard(g_state.wminfo.info.x11.display, CurrentTime);
|
XUngrabKeyboard(g_state.wminfo.info.x11.display, CurrentTime);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SDL_SYSWM_WAYLAND:
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "0");
|
SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "0");
|
||||||
SDL_SetWindowGrab(g_state.window, SDL_FALSE);
|
SDL_SetWindowGrab(g_state.window, SDL_FALSE);
|
||||||
|
Loading…
Reference in New Issue
Block a user