Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
5.13.0 Beta2
-
None
-
-
1cff2a85fd6dcf4bef8826ee13216aa6a563c236 (qt/qtwayland/dev)
Description
#ifdef Q_OS_SYLIXOS // Here you should only redraw the border if the window size has changed. if (windowDecoration() && window()->isVisible() && oldSize != buffer->image()->sizeInBytes()) #else if (windowDecoration() && window()->isVisible()) #endif windowDecoration()->update();
Note:
At each redraw, there is no need to redraw the border if there is no window size change, otherwise each draw will trigger the drawing of the border, increasing the unnecessary performance loss.
This code in: qt5/qtwayland/src/client/qwaylandshmbackingstore.cpp
Attachments
Issue Links
- resulted from
-
QTBUG-72818 Damage of window decorations' right and bottom edges are outside the surface
-
- Closed
-