Diffusion KWin 2f506cd3c108

Put the resize effect in charge of scheduling repaints

Authored by zzag on Feb 5 2020, 11:15 AM.

Description

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

Details

Committed
zzagFeb 11 2020, 10:51 AM
Reviewer
KWin
Differential Revision
D27167: Put the resize effect in charge of scheduling repaints
Parents
R108:78c0095a5daf: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown