Diffusion KWin 56fb507a7644

[wayland] Squash reconfigure methods

Authored by davidedmundson on Feb 26 2019, 1:40 PM.

Description

[wayland] Squash reconfigure methods

Summary:
We can handle the case of a null size inside
ShellClient::requestGeometry and that makes that method more robust.

With that we don't need to handle separate code paths in
the handler of RequestGeometryBlocker.

It's not an exact identical code path, but everything still works out.

If the geometry is unchanged, we'll save the positionAfterResize but
when we apply it doSetGeometry will no-op.

There's also an assumption that toggling maximised will always send a
valid size, but that's true for the current state.

Test Plan: Ran unit tests

Reviewers: KWin, zzag

Reviewed By: KWin, zzag

Subscribers: kwin

Tags: KWin

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

Details

Committed
davidedmundsonFeb 26 2019, 1:40 PM
Reviewer
KWin
Differential Revision
D19331: [wayland] Squash reconfigure methods
Parents
R108:a039f3ba80ab: [wayland] Send correct current time in the frame callback
Branches
Unknown
Tags
Unknown