← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 380907] [NEW] Text gets erroneously copied to the clipboard in GTK based applications

 

You have been subscribed to a public bug:

Using Kubuntu Jaunty/KDE 4.2.2
       
Problem
=======
Selecting text gets hijacked by some kind of clipboard action and "what I select" gets copied to the clipboard and the selection cleared.

To Reproduce
============
I can reproduce this in one of two ways:
1)  With the mouse, drag a selection over some text.  If I pause selecting for [don't know exact time, but less than a second] then *even without releasing the mouse button* the selection is cleared and the selected text is copied to the clipboard.

2)  Using the keyboard, holding down shift and using arrow keys to
select text.  Agsin, if I pause (IE: don't press an arrow key for a
moment) but I'm still holding down the shift key, the selection is
cleared and the selected text is copied to the clipboard.

Affected Apps
=============
I can only reproduce this behavior on a few applications:

* Monodevelop
* XChat
   I know that selecting text in the chat buffer is supposed to immediately copy in xchat, but I can reproduce this behaviour in the 'text entry' input control, which shouldn't exhibit that behaviour.
* Pidgin
   Only in the 'text entry' input control of a conversation window, not in the chat buffer.
* Gedit

I have tried reproducing the behaviour in:
* Kate
* Konqueror
* A 'standard KDE file open dialog'
and was not able to.
       
As far as I can see the pattern is that the affected apps all use GTK.

Other Info
==========
I have been able to reproduce this whether or not I am running klipper.  Also, it happens regardless of klipper's setting: 'Ignore Selection'.  When I am running klipper, I have it set on "Separate Selection and Clipboard".

In trying to troubleshoot the problem I have learned a bit about the difference between the PRIMARY selection and the CLIPBOARD selection.  In all cases the 'hijacked selected text' gets copied to the clipboard and not the primary selection (IE:  I could paste it with ctrl-v).
       
As far as a fix is concerned, if totally disabling xorg's primary selection method (select text then 'paste' with middle mouse button) fixes my issue (and it is possible to totally disable that behaviour) then I am perfectly happy with that solution.  I don't use the primary selection functionality at all, ever.  I even have middle mouse button bound to something totally different.

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: jaunty maverick
-- 
Text gets erroneously copied to the clipboard in GTK based applications
https://bugs.launchpad.net/bugs/380907
You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xorg in ubuntu.