Skip to content

Commit

Permalink
Client: Update size hints on custom margins change
Browse files Browse the repository at this point in the history
As size hints get sent in window content geometry,
they have to be updated once window content geometry changes

Pick-to: 6.7 6.5
Change-Id: I7c17770d29be8381b0c43ab724202219a9cf7a5f
Reviewed-by: David Edmundson <[email protected]>
  • Loading branch information
ilya-fedin committed May 25, 2024
1 parent bbb989d commit 183d34e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/qwaylandwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ QMargins QWaylandWindow::clientSideMargins() const
void QWaylandWindow::setCustomMargins(const QMargins &margins) {
const QMargins oldMargins = mCustomMargins;
mCustomMargins = margins;
propagateSizeHints();
setGeometry(geometry().marginsRemoved(oldMargins).marginsAdded(margins));
}

Expand Down

0 comments on commit 183d34e

Please sign in to comment.