Bug 340639

Summary: Drag'n'dropping selected text pastes wrong text
Product: [Applications] konsole Reporter: Vadim A. Misbakh-Soloviov (mva) <kde>
Component: copy-pasteAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate, peter
Priority: NOR Keywords: investigated, triaged
Version: 2.14.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vadim A. Misbakh-Soloviov (mva) 2014-11-04 17:28:18 UTC
Hi there!
I've noticed (long time ago, actually) that drag'n'dropping selected text in the terminal pastes not the text you selected, but X-server selection buffer content instead.

Reproducible: Always

Steps to Reproduce:
1. open two tabs
2. type "test1" in first and select it.
3. type "test2" in second and select it too.
4. return to the first tab and drag'n'drop "test1" text.


Actual Results:  
'test2' (last selected text) is pasted.

Expected Results:  
'test1' should be pasted.
Comment 1 Peter Wu 2015-08-27 13:18:01 UTC
Confirmed, this occurs because the current global application selection is used.

Does somebody actually use this dnd functionality? It seems broken for me (ctrl+dnd just pastes the selection in the current cursor position without clearing text). In that case, could as well use the middle mouse wheel to trigger the X selection.

Qt: 5.5.0
KDE Frameworks: 5.13.0
Konsole: 15.08.0
Comment 2 Nate Graham 2018-10-20 23:29:18 UTC
The drag-and-drop feature appears to have been removed from at least as far back as Konsole 17.12, perhaps due to this and other issues.