mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 05:53: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,7 +1173,8 @@ int eventFilter(void * userdata, SDL_Event * event)
|
||||
if (params.useSpiceInput)
|
||||
{
|
||||
state.grabMouse = !state.grabMouse;
|
||||
SDL_SetWindowGrab(state.window, state.grabMouse);
|
||||
if (state.wminfo.subsystem != SDL_SYSWM_X11)
|
||||
SDL_SetWindowGrab(state.window, state.grabMouse);
|
||||
|
||||
app_alert(
|
||||
state.grabMouse ? LG_ALERT_SUCCESS : LG_ALERT_WARNING,
|
||||
@ -1674,7 +1675,8 @@ static int lg_run()
|
||||
if (params.captureOnStart)
|
||||
{
|
||||
state.grabMouse = true;
|
||||
SDL_SetWindowGrab(state.window, true);
|
||||
if (state.wminfo.subsystem != SDL_SYSWM_X11)
|
||||
SDL_SetWindowGrab(state.window, true);
|
||||
}
|
||||
|
||||
// setup the startup condition
|
||||
|
Loading…
Reference in New Issue
Block a user