Gentoo Archives: gentoo-user

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Can't paste from selection in gtk-3 apps
Date: Sun, 20 Sep 2015 08:19:06
Message-Id: 20150920111840.aee7a82d8400b500026fd64b@gentoo.org
In Reply to: [gentoo-user] Re: Can't paste from selection in gtk-3 apps by Grant Edwards
1 On Wed, 16 Sep 2015 14:41:48 +0000 (UTC) Grant Edwards wrote:
2 > On 2015-09-16, J. Roeleveld <joost@××××××××.org> wrote:
3 > > On Tuesday, September 15, 2015 06:57:36 PM Grant Edwards wrote:
4 > >> On 2015-09-15, Grant Edwards <grant.b.edwards@×××××.com> wrote:
5 > >> > In most X11 apps I can select some text and then paste it somewhere
6 > >> > else with a middle-click, or dump it to stdout with the command 'xclip
7 > >> > -o'. That doesn't work for highligted text in gtk-3 apps (meld,
8 > >> > evince, audacious, etc.). After selecting text in a gtk-3 app, if I
9 > >> > middle-click in a terminal window it does nothing and 'xclip -o' just
10 > >> > hangs. Selecting text elsewhere will deselect the text in the gtk-3
11 > >> > app, so gtk-3 isn't _completely_ ignoring X11 clipboards/buffers.
12 > >> >
13 > >> > Any ideas why gtk-3 copy/paste is broken and how to fix it?
14 > >>
15 > >> Ah, it turns out it's only a problem if you have multiple screens: you
16 > >> can only paste a gtk-3 selection if the destination is on the same X11
17 > >> screen as the source. I'm pretty sure this is a known problem, but
18 > >> I'm having trouble finding it again in the Gnome bugtracker...
19 > >
20 > > Must be related to gtk-3 then.
21 > >
22 > > I use 2 screens extensively and never experienced any issues like you
23 > > describe.
24 >
25 > And you can select/paste from one screen to another where the source
26 > is a gtk-3 app?
27 >
28 > I should clarify that I mean "screen" in the strict X11 usage. Using
29 > Xinerama or the like to spread a single desktop across multiple
30 > monitors is still a single screen setup. I'm trying to select text on
31 > DISPLAY=:0.0 and paste it on DISPLAY=:0.1
32
33 Just for the record: I have the same problem with multihead setup
34 (:0.0 and :0.1). While selecting with mouse doesn't work. Using
35 menu functions "copy" in one application and "paste" in another one
36 works fine. IIRC there are actually two buffers in X: for mouse
37 selection and for copy-and-paste (both via menu and
38 keyboard shortcuts).
39
40 Best regards,
41 Andrew Savchenko