<table><tr><td style="">davidedmundson created this revision.<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/D5156" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>A certain toolkit doesn't register for mouse press release events<br />
because it now uses XI2 only.</p>

<p>Injecting those directly to the window is too difficult, fortunately in<br />
the GTK3 case we can use XTest to send an event. Something I had<br />
previously chosen against using because it didn't work with something<br />
else (can't remember what). I now have a bit of code choosing which<br />
method to use, which will hopefully cover all cases.</p>

<p>Code is a bit convuluted because the xcb version of xtest doesn't have<br />
the high-level method I want to use in it's API, so I just used Xlib<br />
version.</p>

<p>CCBUG: 375017<br />
CCBUG: 362941</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Ran my usual bunch of test apps:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">xchat</li>
<li class="remarkup-list-item">a GTK3 systray demo I made</li>
<li class="remarkup-list-item">skype (A Qt4 app without SNI patches)</li>
</ul>

<p>All worked as before</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</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/D5156" rel="noreferrer">https://phabricator.kde.org/D5156</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>xembed-sni-proxy/CMakeLists.txt<br />
xembed-sni-proxy/sniproxy.cpp<br />
xembed-sni-proxy/sniproxy.h<br />
xembed-sni-proxy/xtestsender.cpp<br />
xembed-sni-proxy/xtestsender.h</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>