Bug 416869 - [Wayland] Tooltip dismisses context menu of systray icons and they become unresponsive to mouse clicks
Summary: [Wayland] Tooltip dismisses context menu of systray icons and they become unr...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://codereview.qt-project.org/c/q...
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2020-01-28 16:02 UTC by Patrick Silva
Modified: 2021-07-12 01:58 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-01-28 16:02:06 UTC
SUMMARY


STEPS TO REPRODUCE
1. use any app with systray icon on Wayland session (I tested KwikDisk and Discord)
2. hover over its systray icon and click or right-click on it immediately after the tooltip to appear (a menu opens but the tooltip immediately dismisses it)
3. click or right-click on the same systray icon

OBSERVED RESULT
no menu opens. Systray icon works again after I run "plasmashell --replace"

EXPECTED RESULT
systray icons are always responsive to mouse clicks

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.1
Comment 1 Patrick Silva 2020-02-29 09:56:26 UTC
This problem also occurs on Neon unstable.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Comment 2 Patrick Silva 2020-07-28 15:38:43 UTC
The Plasma applets are similarly affected.
The difference is that their systray icons remain responsive to left/right clicks after their context menus to be dismissed by their tooltips.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.73.0
Qt Version: 5.14.2
Comment 3 Lukas Spies 2020-09-22 05:05:17 UTC
The issue described here is still present.

Operating System: Arch Linux
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Comment 4 Lars Veldscholte 2020-12-06 13:54:50 UTC
Can also confirm (on Wayland).

I'm not sure if it's the exact same issue, but I have a similar problem with the Task Manager's tooltips:

STEPS TO REPRODUCE
1. Hover over an application in the Task Manager so the tooltip (with preview) appears
2. Right-click the application so the context menu appears
3. Move your cursor to the context menu


OBSERVED RESULT
Both the tooltip and the context menu close immediately.

This does not happen if you're quick enough to open the context menu before the tooltip appears.

EXPECTED RESULT
The context menu stays open.

Operating System: Arch Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.9.9-arch1-1
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 PRO 4650U with Radeon Graphics
Memory: 14.9 GiB of RAM
Graphics Processor: AMD RENOIR
Comment 5 Patrick Silva 2021-01-24 15:53:15 UTC
Still an issue.

Operating System: Arch Linux
KDE Plasma Version: 5.20.90
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 6 Thiago Sueto 2021-02-20 21:10:44 UTC
*** Bug 421602 has been marked as a duplicate of this bug. ***
Comment 7 Thiago Sueto 2021-02-20 21:10:55 UTC
*** Bug 432024 has been marked as a duplicate of this bug. ***
Comment 8 Thiago Sueto 2021-02-20 21:11:08 UTC
*** Bug 431932 has been marked as a duplicate of this bug. ***
Comment 9 Thiago Sueto 2021-02-20 21:11:19 UTC
*** Bug 432079 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2021-03-04 18:47:11 UTC
Can confirm. The the menu disappears when the tooltip closes.
Comment 11 Nate Graham 2021-03-04 20:25:20 UTC

*** This bug has been marked as a duplicate of bug 417939 ***
Comment 12 Nate Graham 2021-07-09 13:52:21 UTC
Re-opening since this will need a local workaround like Bug 417939 has, until the upstream fix (https://codereview.qt-project.org/c/qt/qtwayland/+/347783) is merged.
Comment 13 Bug Janitor Service 2021-07-10 06:48:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/957
Comment 14 Nate Graham 2021-07-12 01:58:46 UTC
Git commit e9aae72546ec8d9e4fd9296d7a3754d07c815e7a by Nate Graham, on behalf of David Redondo.
Committed on 12/07/2021 at 01:58.
Pushed by ngraham into branch 'master'.

More hiding of tooltips before opening context menu

M  +1    -1    applets/systemtray/package/contents/applet/CompactApplet.qml
M  +1    -1    applets/systemtray/package/contents/ui/items/AbstractItem.qml

https://invent.kde.org/plasma/plasma-workspace/commit/e9aae72546ec8d9e4fd9296d7a3754d07c815e7a