<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: KWin.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />davidedmundson 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/D20951">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The wayland surface is destroyed and recreated after every hide/show. As<br />
it's a new surface, it needs a new blur attached and applied.</p>
<p>The best hook is the expose event on the window.</p>
<p>The current event filtering in Breeze operates on the QWidget which<br />
doesn't match the window. Fixing there still introduces a second layer<br />
of event filters on another object once the window is known.</p>
<p>Whilst it could be done in breeze, but for API clients should just call<br />
KWindowEffects once per window and forget about it regardless of<br />
underlying surfaces. It also fixes all other wayland users of the call<br />
at once.</p>
<p>This fixes blur on context menus opened a second time.</p>
<p>BUG: 398899</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Turned on the show transparency effect in breeze<br />
Opened a context menu multiple times<br />
Observed that it was transparent and blurred</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R130 Frameworks integration plugin using KWayland</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20951">https://phabricator.kde.org/D20951</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/windowsystem/windoweffects.cpp<br />
src/windowsystem/windoweffects.h</div></div></div><br /><div><strong>To: </strong>davidedmundson, KWin<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>