Put the resize effect in charge of scheduling repaints
Summary: If the frame geometry is changed in any away, for example if the client has been moved, resized, or both, setFrameGeometry() will schedule a layer repaint for the visible geometry before and after the update. When there is a resize effect, we only send requests to the client window to render contents at the new size. setFrameGeometry() is not called and therefore no layer repaints are scheduled. Only the resize effect knows what parts of the window or the screen must be repainted and thus it must be responsible for scheduling repaints. A full repaint in AbstractClient::performMoveResize() is scheduled mostly for historical reasons. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D27167
This commit is contained in:
parent
78c0095a5d
commit
2f506cd3c1
1 changed files with 0 additions and 2 deletions
|
@ -1341,8 +1341,6 @@ void AbstractClient::performMoveResize()
|
|||
setFrameGeometry(moveResizeGeom);
|
||||
}
|
||||
doPerformMoveResize();
|
||||
if (isResize())
|
||||
addRepaintFull();
|
||||
positionGeometryTip();
|
||||
emit clientStepUserMovedResized(this, moveResizeGeom);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue