summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
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;
}