<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<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/D24244">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Qt's metaobject is rather sensitive with scope resolution.</p>
<p>Foo::Bar and Bar don't always match to a Qt metaobject, even if they<br />
refer to the same thing to a compiler. Here we register<br />
X11Compositor::SuspendReason but Q_ARG uses SuspendReason and they don't<br />
match. This leads to a runtime failure where the method isn't invoked.</p>
<p>Rather than fixing metaobject usage, port the whole thing to lambdas<br />
which does better compile time checking and is generally nicer to read.</p>
<p>BUG: 412353</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Ran xprop to block compositing. Compositing was blocked.<br />
Grepped source code for Q_ARG use</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</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/D24244">https://phabricator.kde.org/D24244</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>composite.cpp<br />
composite.h<br />
plugins/scenes/opengl/scene_opengl.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, mart<br /></div>