← Back to team overview

desktop-packages team mailing list archive

[Bug 34629] Re: Left-click clears PRIMARY buffer selection (Copy-paste with middle-button/mouse wheel fails)

 

I have this bug too (on Maverick)

My 2 cents:
- gedit clears the primary *only* if the selection was made on gedit itself! (yes, this seems absurd, i know)

Steps to reproduce:

- Select something in Firefox (double or triple click this very line). Alt+Tab to gedit. Middle-click. Pastes fine
- Left click another part of the text in gedit. Middle-click. Pastes fine

- Select something in gedit (double or triple click) Alt+Tab to firefox. Middle-click. Pastes fine
- Alt+Tab back to gedit. Middle-click anywhere (without left-clicking!). Pastes fine

- Left click another part of the text in gedit. Middle-click. PASTE FAILS
- Alt+tab to firefox. Middle-click. PASTE FAILS

- Select something in Firefox (double or triple click this very line). Alt+Tab to gedit.
-  Use keyboard arrow keys to move cursor somewhere else. Middle-click. Pastes fine

- Select something in gedit. Use keyboard arrow keys to move cursor somewhere else. Middle-click. PASTE FAILS
(fails also if you use CTRL+Z or any key that moves the text cursor to another place)

So it looks like the primary is cleared if text cursor in gedit moves
(by left-click or arrow keys or any other way) and the selection was
made in gedit itself.

Is this behavior the same bug or another, new one?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtk+2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/34629

Title:
  Left-click clears PRIMARY buffer selection (Copy-paste with middle-
  button/mouse wheel fails)

Status in GTK+ GUI Toolkit:
  Confirmed
Status in One Hundred Paper Cuts:
  Invalid
Status in “gtk+2.0” package in Ubuntu:
  Triaged

Bug description:
  Left-click clears the visible selection *and* PRIMARY buffer contents,
  rather than just clearing the visible selection.  This means that a
  user middle-click pasting finds the text has been dropped and that
  they can't paste what they expected to paste without going back and
  reselecting in the previous application again.

  1) Select some text.
  2) Click somewhere on the document.
  3) Click mouse wheel.

  Using the PRIMARY mechanism, text should be pasted like it works
  elsewhere in X. However, nothing is pasted in gedit.

  Using the CLIPBOARD mechanism, Ctrl-C, ctrl-V copy-pasting seems to
  work within gedit, so this is unrelated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/34629/+subscriptions