[client] spice: don't use SDLs capture mode under X11, we have our own

This commit is contained in:
Geoffrey McRae 2021-01-03 16:31:10 +11:00
parent 5064a4ecdd
commit 029640f1b3

View File

@ -1173,6 +1173,7 @@ int eventFilter(void * userdata, SDL_Event * event)
if (params.useSpiceInput) if (params.useSpiceInput)
{ {
state.grabMouse = !state.grabMouse; state.grabMouse = !state.grabMouse;
if (state.wminfo.subsystem != SDL_SYSWM_X11)
SDL_SetWindowGrab(state.window, state.grabMouse); SDL_SetWindowGrab(state.window, state.grabMouse);
app_alert( app_alert(
@ -1674,6 +1675,7 @@ static int lg_run()
if (params.captureOnStart) if (params.captureOnStart)
{ {
state.grabMouse = true; state.grabMouse = true;
if (state.wminfo.subsystem != SDL_SYSWM_X11)
SDL_SetWindowGrab(state.window, true); SDL_SetWindowGrab(state.window, true);
} }