Bug 453656

Summary: [wayland] righ click system tray results in left click under some conditions
Product: [Plasma] plasmashell Reporter: Till Schäfer <till2.schaefer>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: materka, miranda, nate, noahadvs
Priority: NOR    
Version First Reported In: 5.24.5   
Target Milestone: 1.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.1.4
Sentry Crash Report:
Attachments: screnshot of misaligned context menu (Signal deskop client)

Description Till Schäfer 2022-05-11 12:23:24 UTC
The right click of the system tray does not work reliably on wayland. I often observe, that a right click is recognized as left click. Other areas, such as the folder view on my desktop work reliably though. Thus, this is a system tray specific phenomenon. 

I cannot reliably reproduce the behavior. However, I believe it is related to some non KDE apps, especially the zoom client and/or signal desktop. Frist, the context menu on this items works less often than the context menu of some kde native icons such as  Audio volume. Nevertheless, sometimes it also affects these KDE native applications. Second, I have never observed this bug, when theses applications were not running. 

I am not familiar with the internals here, but there are some abstraction layers for non-kde-native applications, or am I wrong? Thus, this might have something to with them. 
 


Operating System: Gentoo Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.15.32-gentoo-r1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600
Comment 1 Till Schäfer 2022-05-11 12:27:49 UTC
One more consideration: Under X11 I am using the synaptics touchpad driver, under wayland it is libinput.
Comment 2 Till Schäfer 2022-05-18 14:14:11 UTC
Created attachment 148951 [details]
screnshot of misaligned context menu (Signal deskop client)

Some more observations here. 
* It happens especially often with electron apps.
* It happens often if the system is under load / pressure / swapping. Thus it might be some kind of race condition. 
* Electron Apps context menus sometimes also open at non-aligned positions (see screenshot). I have also sometimes observed that an election app present in the tray is activated when klicking at another location of the panel. maybe thisis related to the bug, if some click areas are not correctly positioned.
Comment 3 Nate Graham 2024-09-03 16:01:41 UTC
Thanks for the bug report, and sorry we weren't able to get to it yet. I can't reproduce this myelf with current git master. Are you still able to reproduce the issue in any Plasma 6 versions? Ideally, in 6.1.4 or newer.
Comment 4 miranda 2024-09-04 04:25:30 UTC
At a certain point the issue stopped occurring for me. The fact it was intermittent made it hard to pinpoint when exactly, but sometime over a year back. I'm currently on v6.1.4.
Comment 5 Nate Graham 2024-09-04 13:22:31 UTC
Thanks Miranda! Is this the case for you as well, Till?
Comment 6 Till Schäfer 2024-09-08 16:47:55 UTC
I did not observe it recently. However, I just switched to plasma 6 + Wayland from plasma 5 + x11  on a different machine and do no longer have the old laptop where i was using Wayland all the time and where the bug occurred. Thus, this is just a low confident feedback.
Comment 7 Nate Graham 2024-09-16 13:52:29 UTC
Thanks. We have not gotten any more reports of this, so let's assume for now that it's been fixed. However if you ever see it again, please do feel free to re-open the bug report. Thanks al lot!