<table><tr><td style="">zzag created this revision.<br />zzag added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />zzag requested review of this revision.
</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/D22136">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Unfortunately Aurorae decoration engine creates several internal clients<br />
per each decoration. One of those clients represents QOffscreenSurface,<br />
which is not a toplevel. Given that no QWindow object will be found for<br />
such clients, m_internalWindowFlags contains undefined value. The client<br />
may or may not have frameless window hint, etc.</p>
<p>Luckily, QOffscreenSurface sets FramelessWindowHint flag, but because<br />
InternalClient is not able to find matching QWindow object, cached<br />
QWindow flags won't have that hint set.</p>
<p>Thus InternalClient will attempt to decorate QOffscreenSurface. A new<br />
Aurorae decoration will be created, which means a new QOffscreenSurface<br />
will be created, which means a new Aurorae decoration will be created,<br />
and so on.</p>
<p>This change restricts subset of internal clients that can be decorated.<br />
Only clients with valid m_internalWindow can be decorated. If m_internalWindow<br />
isn't null, then m_internalWindowFlags is guaranteed to be valid as well.</p>
<p>BUG: 407612<br />
FIXED-IN: 5.16.3</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>ugly-hack</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22136">https://phabricator.kde.org/D22136</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>internal_client.cpp</div></div></div><br /><div><strong>To: </strong>zzag, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart<br /></div>