Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.11, 5.13.0 Alpha 1
-
None
-
-
3200e86cefd9a83cea45c7cab589bfbf1ff63f4f (qt/qtwayland/5.12)
Description
// \a size is without margins static QRegion marginsRegion(const QSize &size, const QMargins &margins) { QRegion r; r += QRect(0, 0, size.width(), margins.top()); // top r += QRect(0, size.height()+margins.top(), size.width(), margins.bottom()); //bottom r += QRect(0, 0, margins.left(), size.height()); //left r += QRect(size.width()+margins.left(), 0, margins.right(), size.height()); // right return r; }
Change to:( See the attachment for specific principles! )
static QRegion marginsRegion(const QSize &size, const QMargins &margins) { QRegion r; r += QRect(0, 0, size.width() + margins.left(), margins.top()); // top r += QRect(size.width() + margins.left(), 0, margins.right(), size.height() + margins.top()); // right r += QRect(margins.left(), size.height() + margins.top(), size.width() + margins.right(), margins.bottom()); //bottom r += QRect(0, margins.top(), margins.left(), size.height() + margins.bottom()); //left return r; }
This code is at: qt5/qtwayland/src/client/qwaylandabstractdecoration.cpp