summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2013-12-19 16:57:29 +0100
committerSimon Rettberg2013-12-19 16:57:29 +0100
commite2c71c3844de35f20b9c7af8c513c993cf06cebb (patch)
treec4e81bf3483a1458766cbd915187d303218998d8 /src/main.cpp
parentAdd support for a session start script that gets run right before the session... (diff)
downloadvmchooser-e2c71c3844de35f20b9c7af8c513c993cf06cebb.tar.gz
vmchooser-e2c71c3844de35f20b9c7af8c513c993cf06cebb.tar.xz
vmchooser-e2c71c3844de35f20b9c7af8c513c993cf06cebb.zip
Check if the window is still centered once a second and move it if neccessary.
This is needed to account for resolution changes while the vmChooser is being displayed.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 774f166..e5b8ce5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -220,7 +220,7 @@ int main(int argc, char *argv[]) {
w.selectSession(defaultSession);
w.show();
- // center dialog on screen
+ // center dialog on primary screen
QRect desktopRect = QApplication::desktop()->availableGeometry(&w);
QPoint center = desktopRect.center();
w.move(center.x()-w.width()*0.5, center.y()-w.height()*0.5);