[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 authored and Geoffrey McRae committed 2021-01-21 12:14:38 +11:00
1 parent ffa72c7992
commit 3385438095
1 file changed
+1 -1
+1 -1
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