summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-29 13:28:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:19 +0100
commit77b58540153a4530f7e8242a8dbc51f3b85d6f61 (patch)
tree8e41454c96ca93ba3c1c1c4c1d5bec8ccdfecc74 /compat
parente9bbb68829e972df2e458aa5beec0568d4737f02 (diff)
opentrack: make sure tracking stop pose is shown
Diffstat (limited to 'compat')
-rw-r--r--compat/check-visible.cpp6
-rw-r--r--compat/check-visible.hpp3
2 files changed, 9 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;
+}
+
diff --git a/compat/check-visible.hpp b/compat/check-visible.hpp
index 5b194c7c..40ec27bb 100644
--- a/compat/check-visible.hpp
+++ b/compat/check-visible.hpp
@@ -10,3 +10,6 @@ void set_is_visible(QWidget const& w, bool force = false);
OTR_COMPAT_EXPORT
bool check_is_visible();
+
+OTR_COMPAT_EXPORT
+void force_is_visible(bool value);