[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:
Quantum 2021-01-20 14:43:05 -05:00 committed by Geoffrey McRae
parent ffa72c7992
commit 3385438095

View File

@ -1987,7 +1987,7 @@ static int lg_run(void)
if (!params.center)
SDL_SetWindowPosition(g_state.window, params.x, params.y);
if (!params.noScreensaver)
if (params.noScreensaver)
g_state.ds->inhibitIdle();
// ensure the initial window size is stored in the state