summaryrefslogtreecommitdiffhomepage
path: root/compat/check-visible.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/check-visible.cpp')
-rw-r--r--compat/check-visible.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/check-visible.cpp b/compat/check-visible.cpp
index d7f24177..0a759a3e 100644
--- a/compat/check-visible.cpp
+++ b/compat/check-visible.cpp
@@ -76,3 +76,9 @@ bool check_is_visible()
return visible;
}
+void force_is_visible(bool value)
+{
+ spinlock_guard l(lock);
+ visible = value;
+}
+