Ask Your Question
0

fedora 23 wayland gnome-terminal mouse middle click paste

asked 2015-09-25 07:46:53 -0600

Helari gravatar image

i just installed fedora 23 and tested wayland. in gnome-terminal mouse middle click paste is not working. i googled it and cant find any solution for that.

i tested mouse middle click with chrome, firefox and gedit, so problem is only with gnome-terminal.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-11-08 07:30:00 -0600

=== Short answer ===

It is a "bug" or rather a decision not to support some X features in Wayland, depending on what exact copy-paste buffer you are asking about.

There are 3 methods to copy paste in X -> Menu (Edit -> copy / Edit -> paste), Keyboard, and mouse (select text click middle mouse button).

Note keyboard C-c = Control-c to copy C-v - Control-v to paste

Under X these methods use separate buffers. To make it worse, in Gnome Wayland you are using both Wayland (gnome apps) and X (Xwayland) so now you add the Wayland buffer to the mix.

The Wayland buffer may have bugs (report them) but it is designed with only one buffer and the one buffer works best with the menu method (Edit -> copy / Edit -> paste).

There is a mouse option in Wayland, highlight text, right click highlighted text -> select copy from the menu -> move mouse to where you want to paste -> right click -> select paste from the menu. This is sort of a mix between the old X menu method and middle mouse method.

=== Longer info ===

You are looking at 2 sets of applications, most of the gnome applications, such as gedit and gnome terminal, run on Wayland. In Wayland, there is only one buffer, the one used with Edit ->copy / Edit -> paste (menu) or C-c C-v (keyboard).

Wayland native apps (most gnome apps)

The keyboard method works for some applications (for example in gedit) but not always between apps (you can not copy test in a gnome terminal by selecting it with the mouse, C-c, and paste it to gedit C-v).

This is a bug (maybe) see https://bugzilla.redhat.com/show_bug....

Between apps you have to use the menu. This is sort of the intended behavior in Wayland

Copy Highlight text with mouse -> right click on text -> select copy from menu Paste - put mouse where you want text -> right click -> select paste from the menu

See https://bugzilla.redhat.com/show_bug....

===

Xwayland

The second problem is not all applications us Wayland. Firefox , for example, is running on XWayland.

To see what apps use Wayland/Xwayland use Looking Glass - http://blog.bodhizazen.net/linux/how-...

X applications have separate buffers for the menu / C-v method and the mouse middle click.

https://www.jwz.org/doc/x-cut-and-pas...

WHAT WORKS

So in Gnome Wayland this should all work (menu, keyboard, middle mouse) with any apps running Xwayland (firefox -> kde terminal AKA Konsole)

WHAT DOES NOT WORK

Not all copy-paste functions (menu, keyboard, and middle mouse button) work normally between applications running on Xwayland to Wayland apps (Firefox -> gnome-terminal).

Middle mouse method will not work as Wayland does not use this buffer

Keyboard (C-c / C-v) usually works, but not always Firefox - Gedit will work Firefox -> gnome terminal will not work Hard to know if this is a feature or a bug

Menu method works Copy either text with either the menu (Edit -> copy) or mouse (mouse select text Right click -> copy)

Paste then usually works with 3 options C-v , Edit -> paste, and ... (more)

edit flag offensive delete link more
0

answered 2015-09-25 12:01:10 -0600

paladini gravatar image

In GNOME versions since 3.9, pasting the primary selection with a middle click is disabled by default. To re-enable it (for all programmes, not just for gnome-terminal), create the file ~/.config/gtk-3.0/settings.ini with these contents:

[Settings]
gtk-enable-primary-paste=true

Or you can just use gnome-tweak-tool, which exposes this setting as a check box (Keyboard and Mouse section inside gnome-tweak-tool). You can find this explanation on Gnome FAQ, take a look.

edit flag offensive delete link more

Comments

yap, i already read gnome faq and tried it and middle click on tweak tool is also enabled, but it dosnt work with wayland.

Helari gravatar imageHelari ( 2015-09-25 12:14:47 -0600 )edit

Question Tools

Stats

Asked: 2015-09-25 07:44:35 -0600

Seen: 5,239 times

Last updated: Nov 08 '15