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

Konrad Materka <kmate...@wp.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kmate...@wp.pl

--- Comment #8 from Konrad Materka <kmate...@wp.pl> ---
I confirm that with latest Plasma 5.16.3. I found solution, will provide patch
later.

Root cause:
System Tray sends two "ContextMenu" events which breaks focus. One is send on
mouse pressed, second on mouse clicked. It is leftover from not full reverted
patch.
Revert commit:
https://github.com/KDE/plasma-workspace/commit/27b1030756002e91b60ba51483efe9c2c477d16e


Fix:
Remove lines 111-113 from:
https://github.com/KDE/plasma-workspace/blob/master/applets/systemtray/package/contents/ui/items/AbstractItem.qml

Local test:
Edit file and logout/reboot:
/usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/AbstractItem.qml


It will also fix Wine applications, now it is not possible to close context
menu by clicking outside of the menu. Sometimes it is not working at all - menu
shows, but cannon click on any position.
Surprisingly GTK + xembededsniproxy was working fine (For example XChat). GTK
applications ignore first event because mouse state is invalid (pressed), only
the second event is handled.

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

Reply via email to