summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r--video/out/x11_common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index eeff773bef..c8ed22b248 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -24,6 +24,7 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+#include "osdep/atomics.h"
#include "osdep/semaphore.h"
#include "common/common.h"
@@ -61,8 +62,9 @@ struct vo_x11_state {
bool dpms_touched;
double screensaver_time_last;
pthread_t screensaver_thread;
+ bool screensaver_thread_running;
sem_t screensaver_sem;
- struct mp_cancel *screensaver_terminate;
+ atomic_bool screensaver_terminate;
XIM xim;
XIC xic;