From 997966814191d0656c9e68b64765fdf2cbbd4a7f Mon Sep 17 00:00:00 2001 From: Rob Caelers Date: Sat, 9 May 2020 12:52:50 +0200 Subject: [PATCH] Make inhibit flag thread safe Signed-off-by: Rob Caelers --- backend/src/unix/MutterInputMonitor.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/unix/MutterInputMonitor.hh b/backend/src/unix/MutterInputMonitor.hh index 89f03f4ea..ff66c8614 100644 --- a/backend/src/unix/MutterInputMonitor.hh +++ b/backend/src/unix/MutterInputMonitor.hh @@ -68,7 +68,7 @@ private: GDBusProxy *idle_proxy = NULL; GDBusProxy *session_proxy = NULL; std::atomic active { false }; - bool inhibited = false; + std::atomic inhibited { false }; guint watch_active = 0; guint watch_idle = 0;