<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: Plasma, hein.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D1773" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The event is sent to the client once all initial state is transmitted.<br />
This means the client is able to see the PlasmaWindow completely created<br />
and not in the intermediate state with further updates being pushed after<br />
being created.</p>

<p>The client side API is adjusted to emit the windowCreated signal after<br />
the initial state event is received. In addition if the window is already<br />
unmapped, the signal will never be emitted which means the not valid<br />
windows are not exposed to the client at all.</p>

<p>The tests are adjusted to reflect the new reality, which in most cases<br />
just means removing the comment that this needs to be improved.</p>

<p>There is one kind of unrelated change included: when an empty icon is<br />
set, the client side now creates a QIcon() instead of going through<br />
QIcon::fromTheme. This wrong behavior was exposed now by the auto tests.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWAYLAND KWayland</div></div></div><br /><div><strong>BRANCH</strong><div><div>plasma-window-initial-state</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D1773" rel="noreferrer">https://phabricator.kde.org/D1773</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/client/test_plasma_window_model.cpp<br />
autotests/client/test_wayland_windowmanagement.cpp<br />
src/client/plasmawindowmanagement.cpp<br />
src/client/protocols/plasma-window-management.xml<br />
src/server/plasmawindowmanagement_interface.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, Plasma, hein<br /><strong>Cc: </strong>plasma-devel, sebas<br /></div>