Bug 387459 - Kontext menu option selected by right mouse button
Summary: Kontext menu option selected by right mouse button
Status: RESOLVED DUPLICATE of bug 374311
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 5.11.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
Depends on:
Reported: 2017-11-30 09:01 UTC by bugs5.kde.org
Modified: 2020-10-24 16:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description bugs5.kde.org 2017-11-30 09:01:27 UTC
Hi there

this is probably the wrong KDE product to report this to - feel free to move it.

Anway, I have an issue with how the right-mouse buttons works on context menus - namely that is also selects the highlighted option.

E.g. in Dolphin, you press the right-mouse button and it opens up a context menu. You move up/down to select the desired option and then you usually press the left mouse button to select that option.

However I noticed you can also select that option by pressing the right mouse button. Furthermore, if you keep the right mouse button pressed, move up/down the list to select the item and then you release the right mouse button, that option is also selected.

This leads to a problem were often unintentionally an option is selected that isn't wanted. it only takes very few pixels horizontal movement to select the option in the context menu when click the right mouse button in dolphin. And if you press the right mouse button a tad to long, that undesired option is selected by releasing the rmb.

I think the right mouse button should not be able to "click"/select an option in the context menu or have at least an option to disable such functionality.

It's not only dolphin, it also happens to me quite a lot that I accidentally detach or close a tab from Konsole.
Comment 1 bugs5.kde.org 2017-11-30 10:22:56 UTC
Here's a screenshot of tmux:


Movement of 1px to the right before relasing the right mouse button is sufficient to trigger the detach.

However, when I have konsole at the bottom of the screen, then "Close tab" would be selected.
Comment 2 Martin Flöser 2017-11-30 17:12:42 UTC
KWin is not responsible for context menus. That is done by the application toolkits, e.g Qt or GTK.
Comment 3 bugs5.kde.org 2017-11-30 18:06:41 UTC
The issue is about mouse behaviour in the context menu. From what I can see, I can adjust (to some degree) the mouse behaviour in KDE. So this seems to be a KDE issue and not a context menu one.
Comment 4 Martin Flöser 2017-11-30 18:12:28 UTC
This is not related to the window manager. Please do not reopen. Not even related to kde as explained in my previous comment.
Comment 5 bugs5.kde.org 2017-11-30 21:51:30 UTC
Actually I need to reopen this:

Qt says invalid:


In KDE 3.5 it was resolved:


So is it now a problem with KDE or Qt? Both say it's not their problem.
Comment 6 Christoph Feck 2017-11-30 21:55:35 UTC

*** This bug has been marked as a duplicate of bug 374311 ***
Comment 7 Nate Graham 2019-08-01 19:30:01 UTC

*** This bug has been marked as a duplicate of bug 410493 ***
Comment 8 Nate Graham 2020-10-24 16:09:28 UTC

*** This bug has been marked as a duplicate of bug 374311 ***