From e2c71c3844de35f20b9c7af8c513c993cf06cebb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 19 Dec 2013 16:57:29 +0100 Subject: 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. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') 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); -- cgit v1.2.3-55-g7522