Diffusion KWin 79f4168fd690

Compute correct visible rect for client-side decorated clients

Authored by zzag on Sep 30 2019, 8:30 AM.

Description

Compute correct visible rect for client-side decorated clients

Summary:
Frame and buffer geometry don't have strict order. Either one of them can
be inside the other one, so we must take that into account when computing
visible bounds of the client including drop-shadows. We also have to take
sub-surfaces into account when determining the visible rect, however it's
out of scope for this patch.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: kwin

Tags: KWin

Maniphest Tasks: T10867

Differential Revision: https://phabricator.kde.org/D24458

Details