summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2015-02-02 17:15:17 +0100
committerSimon Rettberg2015-02-02 17:15:17 +0100
commit571c10c49f3b3046bb40245d2d44861706819f16 (patch)
treedd5fa0b914428946f24df1b3e89b6f98da910eae /src/dialog.cpp
parentMake window move to z-order bottom at startup (diff)
downloadvmchooser2-571c10c49f3b3046bb40245d2d44861706819f16.tar.gz
vmchooser2-571c10c49f3b3046bb40245d2d44861706819f16.tar.xz
vmchooser2-571c10c49f3b3046bb40245d2d44861706819f16.zip
Resize window on resolution change
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index 6104e22..c54dbb5 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -277,6 +277,8 @@ void Dialog::onCenterTimer() {
QRect desktopRect = QApplication::desktop()->availableGeometry(this);
QPoint center = desktopRect.center();
if (center != oldCenter_) {
+ if (_fullscreen)
+ this->resize(desktopRect.width(), desktopRect.height());
this->move(center.x() - this->width() / 2, center.y() - this->height() / 2);
oldCenter_ = center;
}