Take into account g_KeepRunning for the fullscreen detection mechanism

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2023-03-21 23:42:52 +01:00
parent 6802511bb9
commit 92fa11b0a6

View File

@ -8,6 +8,8 @@
#define FULLSCREEN_CHECK_WAIT_TIME 250
extern bool g_KeepRunning;
using namespace WallpaperEngine::Render::Drivers::Output;
void CustomXIOErrorExitHandler (Display* dsp, void* userdata)
@ -228,5 +230,5 @@ void CX11Output::updateRender () const
// give the cpu some time to check again later
usleep (FULLSCREEN_CHECK_WAIT_TIME);
}
while (isFullscreen);
while (isFullscreen && g_KeepRunning);
}