<div>graesslin created this revision.<br />
graesslin added a reviewer: Plasma.<br />
Restricted Application added a project: Plasma.<br />
Restricted Application added a subscriber: plasma-devel.</div><br /><div><strong>REVISION SUMMARY</strong><div><p>If a window has an invalid size the decoration also has an invalid<br />
size. This results in the texture used by the<br />
SceneOpenGLDecorationRenderer to be invalid and being reset to null.<br />
Of course we shouldn't try to use this texture to render to.</p>

<p>The change comes with a test case to simulate the situation. We cannot<br />
simulate it with Wayland clients as the geometry can never be empty.<br />
Thus we create an X11 client, resize it to an empty size and unmap it.</p>

<p>This is the first integration test case which creates an X11 Client!<br />
It's also a test case which needs the OpenGL compositor. This will most<br />
likely not work on build.kde.org yet - we need to see what to do about<br />
it. Will need adjustments to get it at least skip on build.kde.org.</p>

<p>BUG: 361551<br />
FIXED-IN: 5.6.3</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>dont-crash-empty-deco-5.6</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D1383" rel="noreferrer">https://phabricator.kde.org/D1383</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/wayland/CMakeLists.txt<br />
autotests/wayland/dont_crash_empty_deco.cpp<br />
client.h<br />
scene_opengl.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<br /><strong>Cc: </strong>plasma-devel, sebas<br /></div>