https://bugs.kde.org/show_bug.cgi?id=512130
Christoph Cullmann <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://invent.kde.org/util | |ities/konsole/-/commit/48ba | |7ea4c137b2fa1e7031ba0c8641a | |7a906c771 Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Christoph Cullmann <[email protected]> --- Git commit 48ba7ea4c137b2fa1e7031ba0c8641a7a906c771 by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 20/12/2025 at 17:33. Pushed by cullmann into branch 'master'. Fix context menu event handling Konsole was using mousePressEvent with button == Qt::RightButton for emulating a context menu event, which is wrong because there is a dedicated event for context menu. Due to this there were weird issues on wayland for e.g., you open the context menu and then click somewhere else -> you get another context menu if the target widget supports one. This happened because after mousePressEvent, there is a mouseReleaseEvent, which konsole doesn't handle always which then gets synthesized into a context menu event and delivered to the widget where the click happened. This is also a bug in Qt wayland I think and should be fixed there but there is no reason for Konsole not to handle this properly. To fix, move the logic for context menu event to contextMenuEvent. M +5 -8 src/terminalDisplay/TerminalDisplay.cpp https://invent.kde.org/utilities/konsole/-/commit/48ba7ea4c137b2fa1e7031ba0c8641a7a906c771 -- You are receiving this mail because: You are watching all bug changes.
