From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-167489-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 7DF38139BC6
	for <garchives@archives.gentoo.org>; Thu, 17 Sep 2015 14:29:45 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 2241021C07E;
	Thu, 17 Sep 2015 14:29:40 +0000 (UTC)
Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])
	(using TLSv1 with cipher AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id EDB1621C031
	for <gentoo-user@lists.gentoo.org>; Thu, 17 Sep 2015 14:29:38 +0000 (UTC)
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <lnx-gentoo-user@m.gmane.org>)
	id 1ZcaBn-0001EE-5H
	for gentoo-user@lists.gentoo.org; Thu, 17 Sep 2015 16:29:31 +0200
Received: from 67-130-15-94.dia.static.qwest.net ([67.130.15.94])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-user@lists.gentoo.org>; Thu, 17 Sep 2015 16:29:31 +0200
Received: from grant.b.edwards by 67-130-15-94.dia.static.qwest.net with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-user@lists.gentoo.org>; Thu, 17 Sep 2015 16:29:31 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: gentoo-user@lists.gentoo.org
From: Grant Edwards <grant.b.edwards@gmail.com>
Subject: [gentoo-user] Re: Can't paste from selection in gtk-3 apps
Date: Thu, 17 Sep 2015 14:29:08 +0000 (UTC)
Message-ID: <mteink$qi$1@ger.gmane.org>
References: <mt9dmd$sop$1@ger.gmane.org> <4495733.REUhFB2KrW@andromeda>
 <mtbv3c$ht6$1@ger.gmane.org> <11450525.hpTvBvr8O3@andromeda>
X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net
User-Agent: slrn/1.0.2 (Linux)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Archives-Salt: c97d87de-3a0c-4a13-aa10-8206db139775
X-Archives-Hash: 274948c31f17f75a46596ab169be8a5e

On 2015-09-17, J. Roeleveld <joost@antarean.org> wrote:

>>> I use 2 screens extensively and never experienced any issues like you
>>> describe.
>> 
>> And you can select/paste from one screen to another where the source
>> is a gtk-3 app?
>
> Not sure, need to test with a gtk-3 app.
>
> I run KDE myself.

>> I should clarify that I mean "screen" in the strict X11 usage.  Using
>> Xinerama or the like to spread a single desktop across multiple
>> monitors is still a single screen setup.  I'm trying to select text
>> on DISPLAY=:0.0 and paste it on DISPLAY=:0.1
>
> Not using my desktop atm.
> What does Xorg do by default when it detects multiple screens?

Not sure -- I'll have to give it a try. IIRC, it just uses the first
one.

>>> Am surprised it would respond differently between GTK-3 and non-GTK-3
>>> apps.
>> 
>> I'm not.  When somebody selects something, you've got to make onr or
>> more Xlib function calls to grab control of the selection, and if
>> you're naive and think that the screen where your program is running
>> is the only one, then you only make the call to grab control of the
>> selection for that screen. Apparently the gtk-3 developers never
>> thought about the possibility that there are mutliple screens in an
>> X11 session.
>
> Bad design then, as systems with multiple screens have been around
> for years.

Agreed. Apps that use other libraries seem to work fine, and gtk-2
works fine.

>> Are you really using multiple screens?  Or a single screen spread
>> across mutliple monitors?  If you start an xterm on every monitor and
>> do "echo $DISPLAY" in each one, do you get different results or are
>> they all the same?
>
> As I said, what's the default with Xorg?

I'll check.

-- 
Grant Edwards               grant.b.edwards        Yow! Does someone from
                                  at               PEORIA have a SHORTER
                              gmail.com            ATTENTION span than me?