mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:03:40 +00:00
[client] spice: don't use SDLs capture mode under X11, we have our own
This commit is contained in:
parent
5064a4ecdd
commit
029640f1b3
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user