ソースを参照

Take into account g_KeepRunning for the fullscreen detection mechanism

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 3 年 前
親
コミット
92fa11b0a6
1 ファイル変更、3 行追加、1 行削除
  1. 3 1
      src/WallpaperEngine/Render/Drivers/Output/CX11Output.cpp

+ 3 - 1
src/WallpaperEngine/Render/Drivers/Output/CX11Output.cpp

@@ -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);
 }