STEPS TO REPRODUCE 1. Double-click-select text in a konsole tab 2.a VERY quickly use a keyboard shortcut to switch to another konsole tab (Ctrl-left/right arrow for me) 2.b Using alt-tab to switch to another window entirely also reproduces the bug (let's say I want to paste a commit hash from konsole into this browser window with Bugzilla...) 3. Middle-click paste text OBSERVED RESULT The pasted text is what was in the middle-click buffer before step 1 EXPECTED RESULT The pasted text is what was selected in step 1 SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: master KDE Frameworks Version: master Qt Version: kde/5.15 from a few weeks ago ADDITIONAL INFORMATION This bug triggers more often for me than one might think. Seems like I tend to copy and tab away quickly. Because timing matters and it's new, I guess it's a bug in 0752cf3d6261d60bbb20a62194556b2377548368.
Correction: Shift-left/right arrow, not Ctrl-left/right arrow (the default IIRC)
Another way to reproduce: double-click to copy something from "git log", then quickly close the git log with q. Also doesn't copy.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/793
(In reply to Bug Janitor Service from comment #3) > A possibly relevant merge request was started @ > https://invent.kde.org/utilities/konsole/-/merge_requests/793 That one seems to fix it, thanks!
Ah well, there's another thing: double-click to select quickly followed by middle click to paste pastes the selection from before the immediately preceding double-click.
(In reply to Andreas Hartmetz from comment #5) > Ah well, there's another thing: double-click to select quickly followed by > middle click to paste pastes the selection from before the immediately > preceding double-click. I believe that the updated MR 793 should now handle this, both if the triple click is in the same konsole, or in another.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/799
Git commit b238fb29cf9fe061df8c79b07f5126346bff9c88 by Andreas Hartmetz, on behalf of Matan Ziv-Av. Committed on 08/02/2023 at 15:56. Pushed by ahartmetz into branch 'master'. Fix bug in double-click selection A bug introduced in 0752cf3d prevents copying selection to clipboard if a key is pressed a short time after a double click. This is avoided by: - Do not exit selection mode in the time interval between a double click and a (potential) third click. - Save the selection text on a double click, and copy the saved text, rather than the current selection if no third click at the end of the triple click interval. M +31 -15 src/terminalDisplay/TerminalDisplay.cpp M +3 -1 src/terminalDisplay/TerminalDisplay.h https://invent.kde.org/utilities/konsole/commit/b238fb29cf9fe061df8c79b07f5126346bff9c88