Bug 1412207

Summary: middle click paste (PRIMARY) doesn't work in wayland
Product: [Fedora] Fedora Reporter: Pierre Ossman <ossman>
Component: webkitgtk4Assignee: Tomas Popela <tpopela>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: gecko-bugs-nobody, mcatanzaro, rob.townley, tpopela
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-12 00:32:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pierre Ossman 2017-01-11 14:19:55 UTC
As the subject states, you cannot paste things using middle-click in Epiphany under Wayland. Other applications work fine, as does the normal clipboard (Ctrl-v).

Comment 1 Michael Catanzaro 2017-01-11 22:36:49 UTC
TBH I put a boolean somewhere that says Wayland doesn't support middle-click paste, from two years ago when it really didn't. Could try figuring out where that is, changing it and see if it just works....

Comment 2 Michael Catanzaro 2017-01-12 00:28:03 UTC
(In reply to Michael Catanzaro from comment #1)
> TBH I put a boolean somewhere that says Wayland doesn't support middle-click
> paste

Or maybe I'm misremembering. I can't find it.

Comment 3 Michael Catanzaro 2017-01-12 00:29:46 UTC
Note: it seems that primary selection is half-supported. You can paste out (i.e. WebKit does update the selection clipboard when you select text) but you cannot paste into WebKit using middle-click.

Comment 4 Michael Catanzaro 2017-02-18 00:28:36 UTC
(In reply to Michael Catanzaro from comment #1)
> TBH I put a boolean somewhere that says Wayland doesn't support middle-click
> paste, from two years ago when it really didn't. Could try figuring out
> where that is, changing it and see if it just works....

I stumbled across the code today by chance. Posted a patch in the upstream bug.

Comment 5 Michael Catanzaro 2017-02-18 15:14:12 UTC
Fixed upstream, thanks for reporting!