summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInho Lee <inho.lee@qt.io>2022-02-04 10:32:29 +0100
committerInho Lee <inho.lee@qt.io>2022-02-09 19:23:01 +0100
commit37e3789cf932ff665b8bd9325e64524c10c16489 (patch)
treeee333df61cd752d3af2bd42a1ae47214ae2ce4f1
parenta889c23742fa74cf4722442352b1245a2a061362 (diff)
downloadqtwayland-37e3789cf932ff665b8bd9325e64524c10c16489.tar.gz
Update the window geometry when changing decorations
Windows' geometries should be updated when changing decorations. Fixes: QTBUG-100467 Pick-to: 6.3 6.2 5.15 Change-Id: I5ec9968aa48422776d184a8fa2f5d86ecc3ca5c3 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io>
-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 e1c645e1..a86d5d85 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -952,7 +952,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