diff options
author | Simon Rettberg | 2015-02-02 17:15:17 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-02-02 17:15:17 +0100 |
commit | 571c10c49f3b3046bb40245d2d44861706819f16 (patch) | |
tree | dd5fa0b914428946f24df1b3e89b6f98da910eae /src/dialog.cpp | |
parent | Make window move to z-order bottom at startup (diff) | |
download | vmchooser2-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.cpp | 2 |
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; } |