Request the resize of ShellSurface after Decoration updated the borders when maximizing
ClosedPublic

Authored by graesslin on Jun 9 2016, 2:53 PM.

Details

Summary

This ensures that we don't send a size request with the borders still
added.

Test Plan

Verified that a maximized window is properly sized and
doesn't have empty borders

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 4311.Jun 9 2016, 2:53 PM
graesslin retitled this revision from to Request the resize of ShellSurface after Decoration updated the borders when maximizing.
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 9 2016, 2:53 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
luebking added inline comments.
shell_client.cpp
595

ifff geometry() includes the deco for the ShellClient, this will get it shrinking away on each max/restore cycle.
(If it's only the client geo, there's no problem)

graesslin added inline comments.Jun 10 2016, 5:52 AM
shell_client.cpp
595

I actually tested that manually and it does not result in shrinking.

sebas accepted this revision.Jun 13 2016, 9:17 PM
sebas added a reviewer: sebas.
sebas added a subscriber: sebas.

Looks good to me.

This revision is now accepted and ready to land.Jun 13 2016, 9:17 PM
This revision was automatically updated to reflect the committed changes.