Bug 467215 - [KDE] Unix-style copy-paste (using middle button) produces inconsistent results.
Summary: [KDE] Unix-style copy-paste (using middle button) produces inconsistent results.
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: openoffice.org
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-16 12:49 UTC by Gilboa Davara
Modified: 2008-11-24 13:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-24 13:24:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gilboa Davara 2008-10-16 12:49:56 UTC
Description of problem:
When trying to copy paste text from/to terminal and (g)vim to/from oowriter, I'm getting inconsistent results.

Version-Release number of selected component (if applicable):
$ rpm -qa | egrep 'openoffice|kdebase' | sort
kdebase3-3.5.10-2.fc9.x86_64
kdebase3-devel-3.5.10-2.fc9.x86_64
kdebase3-libs-3.5.10-2.fc9.x86_64
kdebase3-pim-ioslaves-3.5.10-2.fc9.x86_64
kdebase-4.1.2-2.fc9.x86_64
kdebase-devel-4.1.2-2.fc9.x86_64
kdebase-libs-4.1.2-2.fc9.x86_64
kdebase-runtime-4.1.2-4.fc9.x86_64
kdebase-runtime-libs-4.1.2-4.fc9.x86_64
kdebase-workspace-4.1.2-2.fc9.x86_64
kdebase-workspace-devel-4.1.2-2.fc9.x86_64
kdebase-workspace-libs-4.1.2-2.fc9.x86_64
kdebase-workspace-wallpapers-4.1.2-2.fc9.x86_64
openoffice.org-base-2.4.1-17.6.fc9.x86_64
openoffice.org-calc-2.4.1-17.6.fc9.x86_64
openoffice.org-core-2.4.1-17.6.fc9.x86_64
openoffice.org-draw-2.4.1-17.6.fc9.x86_64
openoffice.org-extendedPDF-1.4-4.fc9.noarch
openoffice.org-graphicfilter-2.4.1-17.6.fc9.x86_64
openoffice.org-impress-2.4.1-17.6.fc9.x86_64
openoffice.org-langpack-he_IL-2.4.1-17.6.fc9.x86_64
openoffice.org-math-2.4.1-17.6.fc9.x86_64
openoffice.org-writer-2.4.1-17.6.fc9.x86_64
openoffice.org-writer2latex-0.5-2.fc9.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Start a KDE terminal.
2. Start a oowriter session.
3. Mark some text in side the terminal.
4. Middle click inside the oowriter.

OR:
3. Mark some text inside oowriter.
4. Check the contents of the KDE clipboard.
  
Actual results:
One of the following:
- Nothing is being copied.
- Parts of the text is being copied.
- Previous clipboard contents is being copied.
- Marking text in oowriter doesn't appear the KDE clipboard.

Expected results:
Working copy-and-paste.

Additional info:
I did find a reference to (what seems to be) this bug in Ubuntu's launchpad:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/151093

Comment 1 Caolan McNamara 2008-10-16 13:21:25 UTC
If I run OOo and konsole from inside a GNOME session I don't see any problems.

In the past I've seen that "klipper" can cause plenty of trouble for applications. I don't know if that is still the case though.

Comment 2 Gilboa Davara 2008-10-16 17:06:37 UTC
Should this bug be reported against klipper (kdebase) instead?

Comment 3 Caolan McNamara 2008-10-16 21:57:39 UTC
Well as a KDE environment issue rather than GNOME it'll get less attention from me than if it was trivial to reproduce. But is the problems visible under KDE if klipper is disabled ?, if it is then klipper would be absolved from blame.

Comment 4 Gilboa Davara 2008-10-17 05:51:33 UTC
Closing klipper doesn't improve things - without it I'm only getting garbage when trying to use unix-style copy-paste.

- Gilboa

Comment 5 Jaroslav Reznik 2008-10-17 08:30:35 UTC
It's working for me in KDE 4.1.2. First one "how-to reproduce" is standard selection behaviour - it should work even without Klipper, second one is Klipper feature - default is not to synchronize clipboard content with selection, so you can see it in Klipper, but content is still separate. So selection is not in clipboard!

Comment 6 Gilboa Davara 2008-10-20 09:01:02 UTC
One problem was indeed missing klipper option (Sync with selection), thanks.
However, I still cannot seem to select->paste (MB) within OO itself.

Steps to reproduce:
1. Fire up oowriter.
2. Create a new document.
3. Write: Hello.
4. Mark the hello string.
5. New line.
6. Try to paste the line using the middle button.

P.S. just tested it on my CentOS 5.2 machine w/ KDE 3.5.2 - same results.
In both case the klipper sees the "Hello" string, but OO refuses to paste it.

- Gilboa

Comment 7 David Tardon 2008-10-20 10:25:17 UTC
dtardon->gilboad: To get it working, the text intended to be copied must remain selected. I'm not sure if it's an error or if this behaviour is allowed for X selections. OOo is the only one application which behaves in that manner.

Try that:
1. Fire up oowriter.
2. Create a new document.
3. Write: Hello.
4. New line
5. Mark the hello string + the end-of-line
6. Press middle button somewhere below the selected line

Comment 8 Caolan McNamara 2008-10-24 08:31:23 UTC
If there is no klipper running then comment #6 is the behaviour for OOo and e.g. gedit. But with klipper running the klipper magic to keep the last created selection in the selection buffer works for gedit's selection, but not for OOo's selection. i.e. #6 then works for gedit, but not for OOo

(FWIW dtrans is the OOo module which handles selection/clipboard stuff)

Comment 9 Gilboa Davara 2008-10-28 10:59:41 UTC
David,

With or without klipper, your example doesn't work. (Read: text selection remains persistent, but nothing gets copied)

Caolan,

gedit works just fine; with or w/o klipper.

- Gilboa

Comment 10 David Tardon 2008-10-28 13:24:32 UTC
dtardon->gilboad: Do you have Tools->Options->Openoffice.org->View->'Middle mouse button' set to 'Paste clipboard'?

Comment 11 Gilboa Davara 2008-10-28 14:02:07 UTC
Yep.

- Gilboa

Comment 12 David Tardon 2008-10-29 09:58:13 UTC
dtardon->gilboa: With or without clipper, the example in comment 7 works for me (openoffice.org-writer-2.4.1-17.6.x86_64, kdebase-4.1.2-5.x86_64). Middle-button pasting into konsole works in the same way. I'm running KDE on the testing virtual machine.

Comment 13 Gilboa Davara 2008-11-24 12:41:25 UTC
Gaah.
Problem disappeared.

openoffice.org-writer-2.4.2-18.1.fc9.x86_64

Oh well - no idea what-type-of-voodoo magic is at work here, but thanks for help! :)

Feel free to close as WORKSFORME.

- Gilboa

Comment 14 David Tardon 2008-11-24 13:24:31 UTC
Okay.


Note You need to log in before you can comment on or make changes to this bug.