summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInho Lee <inho.lee@qt.io>2022-02-04 10:32:29 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-09 19:17:29 +0000
commite0d6f3cec32b3ce9666ff768cf98ee9c1bd2de79 (patch)
tree513f0b30f2e13196b59235445442a1998afe9e95
parentc034c91ed3e3610e54a2eada1ca73c790a6127f8 (diff)
downloadqtwayland-e0d6f3cec32b3ce9666ff768cf98ee9c1bd2de79.tar.gz
Update the window geometry when changing decorations
Windows' geometries should be updated when changing decorations. Fixes: QTBUG-100467 Change-Id: I5ec9968aa48422776d184a8fa2f5d86ecc3ca5c3 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io> (cherry picked from commit 37e3789cf932ff665b8bd9325e64524c10c16489) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/client/qwaylandwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index 14fbe995..a16a6807 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -867,7 +867,7 @@ bool QWaylandWindow::createDecoration()
QMargins m = frameMargins();
subsurf->set_position(pos.x() + m.left(), pos.y() + m.top());
}
- sendExposeEvent(QRect(QPoint(), geometry().size()));
+ setGeometry(geometry());
// This is a special case where the buffer is recreated, but since
// the content rect remains the same, the widgets remain the same