mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] wm: use correct logic for screensaver inhibition
Namely, we should inhibitIdle if noScreensaver is true, not the other way around.
This commit is contained in:
parent
ffa72c7992
commit
3385438095
@ -1987,7 +1987,7 @@ static int lg_run(void)
|
|||||||
if (!params.center)
|
if (!params.center)
|
||||||
SDL_SetWindowPosition(g_state.window, params.x, params.y);
|
SDL_SetWindowPosition(g_state.window, params.x, params.y);
|
||||||
|
|
||||||
if (!params.noScreensaver)
|
if (params.noScreensaver)
|
||||||
g_state.ds->inhibitIdle();
|
g_state.ds->inhibitIdle();
|
||||||
|
|
||||||
// ensure the initial window size is stored in the state
|
// ensure the initial window size is stored in the state
|
||||||
|
Loading…
Reference in New Issue
Block a user