Bug 340639 - Drag'n'dropping selected text pastes wrong text
Summary: Drag'n'dropping selected text pastes wrong text
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: copy-paste (show other bugs)
Version: 2.14.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2014-11-04 17:28 UTC by Vadim A. Misbakh-Soloviov (mva)
Modified: 2018-10-20 23:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.