Bug 314551 - Wrong clipboard used when opening URLs with middle mouse click
Summary: Wrong clipboard used when opening URLs with middle mouse click
Status: RESOLVED FIXED
Alias: None
Product: rekonq
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Andrea Diamantini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-06 20:07 UTC by Michael Reiher
Modified: 2013-02-24 10:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Reiher 2013-02-06 20:07:26 UTC
When trying to open a URL by pasting it with the middle mouse button on the website area of the rekonq window the keyboard clipboard is used instead of the mouse clipoard.

Reproducible: Always

Steps to Reproduce:
1. select an URL with the mouse (->gets copied to mouse clipboard)
2. select some other text with keyboard Ctrl-C (->gets copied to keyboard clipboard)
3. paste with middle mouse button on rekonq window

Actual Results:  
rekonq tries to open whatever was selected with keyboard

Expected Results:  
rekonq should open whatever was selected with the mouse
Comment 1 Jekyll Wu 2013-02-08 05:08:47 UTC
First, "mouse clipboard" and "keyboard clipboard" are wrong terms. They are commonly known and referred to as   "selection" and "clipboard" (technically wrong too, but that is it). 

Second, what you describe is exactly the expected and correct behavior.  Whenever you select something (remember you have to select something before copying it) , it is automatically put into "selection"(mouse clipboard in your term). 

See http://en.wikipedia.org/wiki/X_Window_selection
Comment 2 Michael Reiher 2013-02-08 08:29:13 UTC
Thanks for educating me, but maybe you should have a closer look at what I was actually trying to say ;)

And middle mouse button should paste from selection, no? This is _not_ the case. For me however middle mouse button pastes from the _clipboard_.

Maybe it's fixed already in more recent versions of rekonq, I don't know. But what I have here on different machines, with at least rekonq 2.0 and some older version, is clearly _not_ expected behavior. It behaves different then _any_ other application out there, namely other browsers.
Comment 3 Andrea Diamantini 2013-02-24 10:52:26 UTC
Git commit 8c7adfbad1c8568a55cb135f560ea06463cd3491 by Andrea Diamantini, on behalf of Thiago Macieira.
Committed on 24/02/2013 at 11:47.
Pushed by adjam into branch 'master'.

Make rekonq use the selection (PRIMARY) for MMB clicks

The Selection is what usually gets pasted when one does an MMB click,
so it makes sense to use that as search term or URL to load.

(Thanks, Thiago!)
Related: bug 315657
REVIEW: 109107
REVIEWED-BY: adjam

M  +1    -1    src/webtab/webview.cpp

http://commits.kde.org/rekonq/8c7adfbad1c8568a55cb135f560ea06463cd3491