mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-20 22:38:09 +00:00
[client] add option to capture input on start
This commit is contained in:

committed by
Geoffrey McRae

parent
ede96fa486
commit
bd42445ea7
@@ -1394,6 +1394,14 @@ static int lg_run()
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
}
|
||||
|
||||
if (params.captureOnStart)
|
||||
{
|
||||
state.serverMode = true;
|
||||
spice_mouse_mode(state.serverMode);
|
||||
SDL_SetWindowGrab(state.window, state.serverMode);
|
||||
DEBUG_INFO("Server Mode: %s", state.serverMode ? "on" : "off");
|
||||
}
|
||||
|
||||
// setup the startup condition
|
||||
if (!(e_startup = lgCreateEvent(false, 0)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user