summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/check-visible.cpp6
-rw-r--r--compat/check-visible.hpp3
-rw-r--r--variant/default/main-window.cpp1
3 files changed, 10 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);
diff --git a/variant/default/main-window.cpp b/variant/default/main-window.cpp
index cd627a6b..2ad2800f 100644
--- a/variant/default/main-window.cpp
+++ b/variant/default/main-window.cpp
@@ -560,6 +560,7 @@ void main_window::stop_tracker_()
if (!work)
return;
+ force_is_visible(true);
with_tracker_teardown sentinel;
pose_update_timer.stop();