SUMMARY The right-click menu fails to show up every other time when alternating between left-clicking somewhere arbitrary and right-clicking a task in the Task Manager. STEPS TO REPRODUCE 1. Right-click a task (such as your browser) in the Task Manager 2. Left-click somewhere else (this will expectedly close the menu) 3. Right-click the same task again OBSERVED RESULT The second right-click fails to open the menu. EXPECTED RESULT The second right-click, just like the first, will correctly open the menu. SOFTWARE/OS VERSIONS KDE Plasma Version: 6.4.5 KDE Frameworks Version: 6.17.0 Qt Version: 6.9.2 ADDITIONAL INFORMATION The problem can be continuously reproduced: Every odd right-click will bring up the menu and every even right-click will fail to bring up the menu.
I don't reproduce or I don't understand the steps: > 2. Left-click somewhere else (this will expectedly close the menu) Where does this left-click happen, elsewhere on the task bar ? on the wallpaper ? On an application ? Maybe it does have any incidence ? > KDE Plasma Version: 6.4.5 I am using 6.5.1, so that might explain I don't reproduce this. This might have been fixed. Maybe recording a video would be simpler to demonstrate this (Meta+R)
Created attachment 186650 [details] demonstration of the bug
(In reply to Méven from comment #1) > Where does this left-click happen, elsewhere on the task bar ? on the > wallpaper ? On an application ? Any of those will do. > Maybe recording a video would be simpler to demonstrate this (Meta+R) I've uploaded a clip.
> Operating System: NixOS 25.11 > KDE Plasma Version: 6.5.2 > KDE Frameworks Version: 6.19.0 > Graphics Platform: X11 Unable to reproduce, task manager behaves as expected. Does the issue occur in a Wayland or X11 session only?
Can reproduce on Wayland when the app you click into is _not_ plasmashell, i.e.: 1. right click entry in task bar 2. left click e.g. neochat or dolphin 3. right click task bar again Menu doesn’t open.
(In reply to Savchenko Dmitriy from comment #4) > Does the issue occur > in a Wayland or X11 session only? I've only tested it on Wayland.
Setting to confirmed, since Kai was able to reproduce.
The problem is the TapHandler for right click in Task.qml. It binds a handler to onPressedChanged to open on button press, but when the menu opens, the Handler stops receiving mouse updates and never registers that it's no longer pressed. So when you try to press it again, pressed doesn't actually change, and the Changed signal is never sent. This time the release goes through, the pressed property becomes false, and the next attempt works again. The TapHandler sets `gesturePolicy: TapHandler.WithinBounds` to fix this, but this doesn't seem to work - not sure if that's a Qt change. I'm also not sure how to best fix this.
> Can reproduce on Wayland > The TapHandler sets `gesturePolicy: TapHandler.WithinBounds` to fix this, but this doesn't seem to work - not sure if that's a Qt change. I'm also not sure how to best fix this Was able to reproduce with the exact same system on Wayland. Reproducing the bug also breaks the next left click, if you do that instead of the right click. I imagine this has something to do with Wayland not allowing applications to see out of bounds clicks and GestureHandler's implementation not working as expected with it