Diffusion KWin efc62941eeb6

[wayland] Place all toplevels before the first configure

Authored by davidedmundson on Apr 9 2019, 10:15 AM.

Description

[wayland] Place all toplevels before the first configure

Summary:
Currently popups get positioned once at the initial configure, to set
the correct size and again when they are mapped.

Toplevels are currently only positioned when they are mapped. This works
for all cases where the the toplevel defines its own size, but not if
the window should have an initial size set by the placement strategy or
window rules. Most notably the maximised placement strategy used on
plasma mobile.

Being out of sync and resizing later currently causes a positioning bug
when plasma mobile is used with XdgShell.

This patch repositions all top levels that don't have a position set
through the plasma interface.

Test Plan: Relevant unit test

Reviewers: KWin, bshah

Reviewed By: bshah

Subscribers: zzag, bshah, kwin

Tags: KWin

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