https://bugs.kde.org/show_bug.cgi?id=375017

--- Comment #3 from David Edmundson <k...@davidedmundson.co.uk> ---
Git commit 9df815e843a4385465fff0cb9a76ddc94ed35b38 by David Edmundson.
Committed on 24/03/2017 at 09:35.
Pushed by davidedmundson into branch 'master'.

Inject mouse clicks from SNI to xembedded icons with XTest

Summary:
A certain toolkit doesn't register for mouse press release events
because it now uses XI2 only.

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

Code is a bit convuluted because the xcb version of xtest doesn't have
the high-level method I want to use in it's API, so I just used Xlib
version.
Related: bug 362941

Test Plan:
Ran my usual bunch of test apps:
- xchat
- a GTK3 systray demo I made
- skype (A Qt4 app without SNI patches)

All worked as before

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D5156

M  +3    -3    xembed-sni-proxy/CMakeLists.txt
M  +26   -2    xembed-sni-proxy/sniproxy.cpp
M  +7    -0    xembed-sni-proxy/sniproxy.h
A  +32   -0    xembed-sni-proxy/xtestsender.cpp     [License: LGPL (v2.1+)]
A  +28   -0    xembed-sni-proxy/xtestsender.h     [License: LGPL (v2.1+)]

https://commits.kde.org/plasma-workspace/9df815e843a4385465fff0cb9a76ddc94ed35b38

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to