summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/main-window.cpp13
-rw-r--r--opentrack/main-window.ui2
2 files changed, 4 insertions, 11 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp
index cd715216..4f6972f4 100644
--- a/opentrack/main-window.cpp
+++ b/opentrack/main-window.cpp
@@ -34,7 +34,7 @@ main_window::main_window() : State(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH)
{
ui.setupUi(this);
-#if !defined _WIN32 && !defined __APPLE__
+#if !defined _WIN32
annoy_if_root();
#endif
@@ -47,7 +47,7 @@ main_window::main_window() : State(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH)
init_shortcuts();
init_tray_menu();
- setVisible(start_in_tray());
+ setVisible(!start_in_tray());
ensure_tray();
connect(&pose_update_timer, &QTimer::timeout,
@@ -280,14 +280,7 @@ main_window::~main_window()
stop_tracker_();
close();
- constexpr int inc = 25, max = 1000;
-
- for (int k = 0; k < max; k += inc)
- {
- QEventLoop ev;
- ev.processEvents();
- portable::sleep(inc);
- }
+ portable::sleep(1000);
}
exit();
diff --git a/opentrack/main-window.ui b/opentrack/main-window.ui
index a30ef9ed..0ec5b5ab 100644
--- a/opentrack/main-window.ui
+++ b/opentrack/main-window.ui
@@ -8,7 +8,7 @@
<x>0</x>
<y>0</y>
<width>818</width>
- <height>666</height>
+ <height>567</height>
</rect>
</property>
<property name="sizePolicy">