Diffusion KWin d079f5daed4f

[wayland] Keep the opposite corner still when resizing a window

Authored by zzag on Jan 23 2020, 9:40 PM.

Description

[wayland] Keep the opposite corner still when resizing a window

Summary:
According to the xdg-shell spec, configure events carry the maximum
window geometry size. If a client wants to enforce aspect ratio, it
may attach a buffer with smaller size. We need to account for that
when determining frame geometry in the commit handler.

I'm targeting 5.18 branch.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: kwin

Tags: KWin

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