mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 13:22:23 +08:00
Take into account g_KeepRunning for the fullscreen detection mechanism
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
6802511bb9
commit
92fa11b0a6
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#define FULLSCREEN_CHECK_WAIT_TIME 250
|
#define FULLSCREEN_CHECK_WAIT_TIME 250
|
||||||
|
|
||||||
|
extern bool g_KeepRunning;
|
||||||
|
|
||||||
using namespace WallpaperEngine::Render::Drivers::Output;
|
using namespace WallpaperEngine::Render::Drivers::Output;
|
||||||
|
|
||||||
void CustomXIOErrorExitHandler (Display* dsp, void* userdata)
|
void CustomXIOErrorExitHandler (Display* dsp, void* userdata)
|
||||||
@ -228,5 +230,5 @@ void CX11Output::updateRender () const
|
|||||||
// give the cpu some time to check again later
|
// give the cpu some time to check again later
|
||||||
usleep (FULLSCREEN_CHECK_WAIT_TIME);
|
usleep (FULLSCREEN_CHECK_WAIT_TIME);
|
||||||
}
|
}
|
||||||
while (isFullscreen);
|
while (isFullscreen && g_KeepRunning);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user