Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Can't paste from selection in gtk-3 apps
Date: Thu, 17 Sep 2015 14:29:45
Message-Id: mteink$qi$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Re: Can't paste from selection in gtk-3 apps by "J. Roeleveld"
1 On 2015-09-17, J. Roeleveld <joost@××××××××.org> wrote:
2
3 >>> I use 2 screens extensively and never experienced any issues like you
4 >>> describe.
5 >>
6 >> And you can select/paste from one screen to another where the source
7 >> is a gtk-3 app?
8 >
9 > Not sure, need to test with a gtk-3 app.
10 >
11 > I run KDE myself.
12
13 >> I should clarify that I mean "screen" in the strict X11 usage. Using
14 >> Xinerama or the like to spread a single desktop across multiple
15 >> monitors is still a single screen setup. I'm trying to select text
16 >> on DISPLAY=:0.0 and paste it on DISPLAY=:0.1
17 >
18 > Not using my desktop atm.
19 > What does Xorg do by default when it detects multiple screens?
20
21 Not sure -- I'll have to give it a try. IIRC, it just uses the first
22 one.
23
24 >>> Am surprised it would respond differently between GTK-3 and non-GTK-3
25 >>> apps.
26 >>
27 >> I'm not. When somebody selects something, you've got to make onr or
28 >> more Xlib function calls to grab control of the selection, and if
29 >> you're naive and think that the screen where your program is running
30 >> is the only one, then you only make the call to grab control of the
31 >> selection for that screen. Apparently the gtk-3 developers never
32 >> thought about the possibility that there are mutliple screens in an
33 >> X11 session.
34 >
35 > Bad design then, as systems with multiple screens have been around
36 > for years.
37
38 Agreed. Apps that use other libraries seem to work fine, and gtk-2
39 works fine.
40
41 >> Are you really using multiple screens? Or a single screen spread
42 >> across mutliple monitors? If you start an xterm on every monitor and
43 >> do "echo $DISPLAY" in each one, do you get different results or are
44 >> they all the same?
45 >
46 > As I said, what's the default with Xorg?
47
48 I'll check.
49
50 --
51 Grant Edwards grant.b.edwards Yow! Does someone from
52 at PEORIA have a SHORTER
53 gmail.com ATTENTION span than me?

Replies

Subject Author
[gentoo-user] Re: Can't paste from selection in gtk-3 apps Grant Edwards <grant.b.edwards@×××××.com>