Update window geometry when creating the decoration in ShellClient
ClosedPublic

Authored by graesslin on Jun 10 2016, 8:55 AM.

Details

Summary

When managing a new decorated ShellClient we observed that the window
gets placed with a wrong geometry and on next damage event expands into
a strutted area.

The main reason for this behavior is that the window geometry did not
get updated when creating the decoration. With this change the geometry
gets updated, so that the placement is performed on the correct geometry.

The change itself does not yet cover all conditions. E.g. a maximized
windows which will get decorations will be incorrectly sized. This
requires further changes.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 4321.Jun 10 2016, 8:55 AM
graesslin retitled this revision from to Update window geometry when creating the decoration in ShellClient.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptJun 10 2016, 8:55 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Jun 13 2016, 9:21 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Jun 13 2016, 9:21 PM
This revision was automatically updated to reflect the committed changes.