GNU bug report logs - #43672
28.0.50; select-frame-set-input-focus does not set focus first time called

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Arthur Miller <arthur.miller@HIDDEN>; dated Mon, 28 Sep 2020 13:50:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 30 Sep 2020 09:31:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 30 05:31:30 2020
Received: from localhost ([127.0.0.1]:58226 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kNYSQ-0006QR-Ei
	for submit <at> debbugs.gnu.org; Wed, 30 Sep 2020 05:31:30 -0400
Received: from mail-vi1eur06olkn2094.outbound.protection.outlook.com
 ([40.92.17.94]:1341 helo=EUR06-VI1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arthur.miller@HIDDEN>) id 1kNYSM-0006QB-0Q
 for 43672 <at> debbugs.gnu.org; Wed, 30 Sep 2020 05:31:29 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=oa+srDh0+cJirr3KkDJXy+ZS8K0Zrco8FhxG4//ZPykdsFNS0E4dr08QeUihxAf8TyfjAP8ZH4CW8unKYz1Oj5+wAvvPKX2XNHkRDfCsSgz4HJFsO9XcwgBC85RbWMlZaXqBdAhM7VWqdJZC93HKfoXz4RT+EyWGA/0EedOvEwnsT7fKX33Ysa4b0ww2QJho2ZEs7pRuxduDmlU/UOVLineyb6vHfNd9j0jlPfxXas3Llw9YjlMnPeB1UgOg1swKSCUFQ2uEGkVctkT0WKpr2NZf/91PgKSuz1HSkolAMY5m3HfJcpnYP5vjHVH45Z7iozrumZlvLiPxeiBT1yZKVQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=ATWtfJgLYSrFjvDAmp9S82JD1RlFbfKQ4qsxXqDrpSQ=;
 b=OYMqYHMT3LC8V7rHnx4bsECrNLux6+Th9cBlBaPp1NY0D4P8QSgI+D8tqdDog75f0oe9/esQS9ZtUTLACbUzC34sfp20VugmZk4oqonRDQ5KAjEeygfnb9FQ7qWcxDGp7mlZAukvm3Y9nvpjZ4d/VwLOd5EuBlPt8HCgz3GA6vEkvm25uMd0BYa7utOjVaqqaOiils4Mu+OZcNdp00K/aYNreuD07Z4IyqP6hZI6l7Ospsetpln+bR3G3pxpqqmE7euVyAV63m6Zccf59Y18eHe8CdWH5v3rn4dkADZ9BjM+hwX9kcl7wk6hoi+k5IzslSKfJf8UqJj8bjDor1YDJw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; 
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=ATWtfJgLYSrFjvDAmp9S82JD1RlFbfKQ4qsxXqDrpSQ=;
 b=m2aBBSY0YwecK6Uc5DywhDv9e3w6CJ2LWLpXZBeFZe8AIw+mL1cR5hhtX9eWhfoyYDNEuUnIbfNDOEtVucY3KFj8tx9piG6SH4xd76uKdbotMnWf/OVIJdRqYOmtTR3o8qzfQQOKn8e5Wcihgp1vaCaerhPKlZVMOjz4O8cyrAOM8aPSEniqr61vBlszUaoRG7vhmtd5CbrmmqyOysqHkHV8LmWAx11hIG9uSdwsIl54GpSBSmC7yoYRQTifk/CTjI5xaRAFvc9V6EOPea737768MKg0RqS59Y/kbA4NqLGIX/ARFX/xV3cHFt99a32xuHjyLq25lZRQ5LoeQ4RT1g==
Received: from VI1EUR06FT003.eop-eur06.prod.protection.outlook.com
 (2a01:111:e400:fc37::50) by
 VI1EUR06HT189.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::392)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21; Wed, 30 Sep
 2020 09:31:19 +0000
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 (2a01:111:e400:fc37::53) by VI1EUR06FT003.mail.protection.outlook.com
 (2a01:111:e400:fc37::75) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend
 Transport; Wed, 30 Sep 2020 09:31:19 +0000
X-IncomingTopHeaderMarker: OriginalChecksum:0DD5F90E1CA3F544D78D3A7945157961B4383CB4357A4CE6E6EA8D96AA69607E;
 UpperCasedChecksum:57FEE4B0F011183186F67815FA6D000A28FA577C3A144AF1248D82B6B989F6AA;
 SizeAsReceived:7991; Count:46
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3433.035; Wed, 30 Sep 2020
 09:31:19 +0000
From: Arthur Miller <arthur.miller@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
 <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
 <87y2kut2cp.fsf@HIDDEN>
 <VI1PR06MB45265689118763E4B2F17C0C96350@HIDDEN>
 <87a6x8elva.fsf@HIDDEN>
 <d7b2af2c-3e13-e352-12ac-497f7ff1f2b7@HIDDEN>
 <VI1PR06MB452633E5D781317F61E1723B96320@HIDDEN>
 <7b7b537b-0092-446c-4197-465e75595248@HIDDEN>
Date: Wed, 30 Sep 2020 11:31:16 +0200
In-Reply-To: <7b7b537b-0092-446c-4197-465e75595248@HIDDEN> (martin rudalics's
 message of "Wed, 30 Sep 2020 10:15:38 +0200")
Message-ID: <VI1PR06MB45268E1C38F8D2C717C304A796330@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Content-Type: text/plain
X-TMN: [Kmh4AMWQXakVas27RccxwybbdirOyUZx]
X-ClientProxiedBy: AM6PR08CA0028.eurprd08.prod.outlook.com
 (2603:10a6:20b:c0::16) To VI1PR06MB4526.eurprd06.prod.outlook.com
 (2603:10a6:803:ac::17)
X-Microsoft-Original-Message-ID: <87imbvobkr.fsf@HIDDEN>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from pascal.homepc (90.230.29.56) by
 AM6PR08CA0028.eurprd08.prod.outlook.com (2603:10a6:20b:c0::16) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3433.34 via Frontend Transport; Wed, 30 Sep 2020 09:31:17 +0000
X-MS-PublicTrafficType: Email
X-IncomingHeaderCount: 46
X-EOPAttributedMessage: 0
X-MS-Office365-Filtering-Correlation-Id: 42e8d8a4-2512-4446-42b7-08d865239581
X-MS-TrafficTypeDiagnostic: VI1EUR06HT189:
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: hH75NVsoEV3J6l8THJ2mIuGhMegukHaKr9S4sDZ9gtpQOSu5f6WrKg9x0xE3fiLSRw5aPR60EV5w0zYPk3emXeWUVNclaXnyIuYo9xSq6hBw1uPkDvfCkRNM9B0hF6xpepEr1oq/+yXYrhBV/KWxbmewzQvnw1b3cTNXpjtYIhzxBvco1QqgqTFbxKdrOtAAqr262lB87uMl+T2Dh5vM/w==
X-MS-Exchange-AntiSpam-MessageData: w8+4jU/VURtuc2BhmT2Qqa00tAbUKPivBq0ch/FtU+iin65sr2r5gVOe5NUvF5rgC/Akv+g8Zo/rKUEq+RS9L8qwCYdpNBB8uaxxq2Ffwhf3ph7kXFAGX+te79qG5IKd5t4YOJfc7d5Qh0R0wt6xhA==
X-OriginatorOrg: live.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 42e8d8a4-2512-4446-42b7-08d865239581
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2020 09:31:19.1345 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource: VI1EUR06FT003.eop-eur06.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR06HT189
X-Spam-Score: -0.6 (/)
X-Debbugs-Envelope-To: 43672
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.6 (-)

martin rudalics <rudalics@HIDDEN> writes:

>> I can't say why, but today this works fine with my "normal emacs"; with
>> all packages loaded and running as server/client.
>>
>> When I start with emacs -Q then it does not work; it needs two calls to
>> select-frame-set-input-focus.
>
> That is, you can interleave normal and -Q sessions and in the normal
> session "this works" and in the -Q session it doesn't?  Then I'm afraid
> that you have to bisect the things you do in your normal session to find
> out what makes "this work".
I just did; seems it has something with server/client to do.

It works in emacsclient; not when running as ordinary process. Tryed
both as emacs -Q, and with my init file.

>> I thought it might have something to do with focus and how WM raises
>> windows and gives focus; normally I have focus follow mouse but not auto
>> raising enabled. I have disabled auto-focus (need click into window to
>> give focus) but I see no difference in behaviour.
>
> By design, auto-focus should only affect mouse movements.  One recurring
> problem is, however, whether the WM should auto-move the mouse pointer
> to a freshly displayed window in order to make sure that if the mouse
> pointer was located on another window, that window would not regain
> focus immediately due to your auto-focus settings.  Note that that
> window _should_ retain focus when you specified 'no-focus-on-map' for
> the new frame but IIUC you did not do that.
In Compiz; the newly created window does get focus, but the mouse is not
moved; if mouse is noved then focus switches again; but this did not
spooked. It seems that it has something to do if it is emacs or
emacsclient.

I don't know how emacsclient works; maybe it just does not pass all
requests to the server correctly?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 30 Sep 2020 08:15:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 30 04:15:48 2020
Received: from localhost ([127.0.0.1]:58045 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kNXHA-0004Wo-6X
	for submit <at> debbugs.gnu.org; Wed, 30 Sep 2020 04:15:48 -0400
Received: from mout.gmx.net ([212.227.17.22]:33091)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1kNXH8-0004Wa-0e
 for 43672 <at> debbugs.gnu.org; Wed, 30 Sep 2020 04:15:46 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1601453739;
 bh=0CHsCbW/KoUnt5EDmILttWbVuwoNCh7Umy0Dfa4NyNY=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=Ydy2VRiBRdfNdb7JwGd7PkDcTzjeH2koeARFWgaUJ8TX+ofip9TFGaDB1Y4qokrNj
 3W3QaDjZj4tYh1oetJqznAqUVIISJzFbUNc9lOlF+2Ig7bzLr5BXUNu21+uyXZcN1r
 gOtHbgqLs+Zz0ZtkVRaeecuPI1q2OEJKeue/GbH4=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.101] ([46.125.249.105]) by mail.gmx.com (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mgeo8-1ktXZn336q-00h4H3; Wed, 30
 Sep 2020 10:15:39 +0200
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
To: Arthur Miller <arthur.miller@HIDDEN>
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
 <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
 <87y2kut2cp.fsf@HIDDEN>
 <VI1PR06MB45265689118763E4B2F17C0C96350@HIDDEN>
 <87a6x8elva.fsf@HIDDEN> <d7b2af2c-3e13-e352-12ac-497f7ff1f2b7@HIDDEN>
 <VI1PR06MB452633E5D781317F61E1723B96320@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <7b7b537b-0092-446c-4197-465e75595248@HIDDEN>
Date: Wed, 30 Sep 2020 10:15:38 +0200
MIME-Version: 1.0
In-Reply-To: <VI1PR06MB452633E5D781317F61E1723B96320@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:FCNPAPJn8nH+v6yOol6tOaB5KM5QjxJDOXMH8DeCXrb0NOCZeYJ
 89Y83o9C61z53aggeNRbgJsOiOeb60IbGaPyiD6u9TqtGQwxgS8/uOaiuik4LjUl/zmcwcp
 PKnoMfp4Vn3m+KfPL2zdVXebH/Bk7RJLTjyr3qmz4E+CVdfYaZxngcU+9ocLVpS1DuVHlFH
 2wfTeyH49oZsXQknziHtQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:flg7+WPhaOg=:jaGidvPCR+oFJwiemnjY2H
 YQQCSrZ/n9fXlk2tO+V6A7hrr4wGuabzAQaoymcD1qlNLotmwmnDu+5a/a9kzQNnx3w8m1N0c
 nRo+tAxNSdzjyiQnxFRPNduDMdx6c/R9mdYlMgYXwi1S+W+Ri3v80BkziPJzn49igQymB9Yeo
 luMCzw8YYP+WVB5ZRTFji+vxl9Oh0CXHARneCjU3rAXKRR0KdwMkjIp9IcqtXvHImIHUGbpW1
 i3c4F5inUjts2g790sSsSlZNjEClhdyA8snQHYB98JtktyZ3dTCex5NZxkNPt8TjpkwLIliR7
 NXehIb2E4TJSOI0K/s8aL4gOaFE5+Hef1AF2Ebs0Opgd2bxDB8oYePtyLGMUEKJpC78Ox4yn2
 YiK3SsLq1iMMYxSRtLxBJisRiK06BbK2FaIedr8CUEqpB0KavAsOLjmNoccq9+aeJf5XDHNDK
 cti1ScTOPrEg9SppB1XZaWPZuVWQ6C5zAyymyN/fRcwDZLd7gqIpbMfwWDBektmrfOGcgPfZI
 L7pEtXp3RsKr6mxGxUZ5jx9KphKDHRcCaT39NCGYedaLEePy2ad8ERTPFgIRbUHLl9eKtzcPC
 UaQ9lBrnkBK0Q50ADoSmPWxlxJZGpXZB5/kf9WYaT42/pKRyEcj3V/EHvK6futtTdDnO2alKi
 tspra0IHX1Cr29xpYSmkLRHQMlCnhBS87FBMMU0xkGCaen7+WzX34+GJKI4Rx5xeKnJiNVBE2
 RGr/QCtV3GDnV5FxaX08IbrcyvlH1/EbKG7YUIXTN9Zsw+Lr49H2ORkKnlK8yjCcMuFMwxpH5
 NbnG90MkNJEHnkCK9aOO4SKgB8VQBB6kpzlQn7JMQ8R16P78165lixnVbETMlT5YOcaeJlK1V
 o38FJkQGbBJW1jSe7ZcVvIxN0m+MVPlOEEuXFtTrgYBbU2sYVMZSRq4rEsc6E0xzqUAGhOcx4
 PYlJBU/8iJP2+8ax4+OcmoI3DOPfFy6t9TqTO4SFz3tdfDTRG/JwXIhWITneS7gb8qIoO3blM
 h56i5nozj42Zj1O/lbp4tV7vPlg9IjGRUzBKaiEhV8/SnBqMBd4OF4Ls6nh7TSnkdQu/7RVzm
 DvqmYVmH5/D1A8oyOkf3hT6mSpzxSf17o5ZrE1lFm3AfsrGlDbP8pSBo3js2WJJ7CoApydiuj
 uoAqrfC7RoiufWpzGuhIerNbIg7W4r9eMIw3hMkjG6nOpp1sKpSyhPwArDD6PXO8PJ1VdRTsx
 Mxz4duUCgV7q5m74h
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 43672
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

 > I can't say why, but today this works fine with my "normal emacs"; with
 > all packages loaded and running as server/client.
 >
 > When I start with emacs -Q then it does not work; it needs two calls to
 > select-frame-set-input-focus.

That is, you can interleave normal and -Q sessions and in the normal
session "this works" and in the -Q session it doesn't?  Then I'm afraid
that you have to bisect the things you do in your normal session to find
out what makes "this work".

 > I thought it might have something to do with focus and how WM raises
 > windows and gives focus; normally I have focus follow mouse but not auto
 > raising enabled. I have disabled auto-focus (need click into window to
 > give focus) but I see no difference in behaviour.

By design, auto-focus should only affect mouse movements.  One recurring
problem is, however, whether the WM should auto-move the mouse pointer
to a freshly displayed window in order to make sure that if the mouse
pointer was located on another window, that window would not regain
focus immediately due to your auto-focus settings.  Note that that
window _should_ retain focus when you specified 'no-focus-on-map' for
the new frame but IIUC you did not do that.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 29 Sep 2020 20:43:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 29 16:43:19 2020
Received: from localhost ([127.0.0.1]:57296 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kNMT1-0008J2-3c
	for submit <at> debbugs.gnu.org; Tue, 29 Sep 2020 16:43:19 -0400
Received: from mail-oln040092067061.outbound.protection.outlook.com
 ([40.92.67.61]:65110 helo=EUR02-AM5-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arthur.miller@HIDDEN>) id 1kNMSy-0008In-Ak
 for 43672 <at> debbugs.gnu.org; Tue, 29 Sep 2020 16:43:18 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=A+ariDu6+ZGOj5W56atX29iM+XoP67oWeMmra8KCzVNFyFB+hjsyk6W1euAGbH+ymorQzoW4bayx/aFlZjiQcaMvcxvRslrgJ5BAWyDWBiKLYrqiFcpKjFTRhNQixFv1wSJCsd+yF6SAAxgO87LPiHDCImGHXjMXYRDtssQb01H5zxjF5xS2LyZA+b0kwa1mazq9BAvlPl4o+ZhKogF7e9DjFXUEd41V9X8TdNo4y6Tb8ts3trULV1fTN04sApUnu7dnJhDx1CLswY8+ZW6qMXlcm1tL2ctHBNFjwrpfm6Ps1pGdDt5lSKy+bfgVI/4qGvleGdJ/x/tEaIHMswouyQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=5LnIUdLPBPXKjArYr6V4oI0zi2foZawcOEAVSGST7lo=;
 b=mAW1pdoVGmE0rkj1m6SaNoAfGkecTL/HwtuoJxvF9AYE+W+rXL0myHLOS66HH97FWVBJkVNy/Frfe2EcuSW50c8TXRxY1W+F7sX6I4azm/0ZVcYuI5Um+oRzUpJ9H85HQE4j88nkSfdAONnot+/I/7WutByVeteepTOWsYmTwsA4gQCtjUzR8VyzJvCGzmLwGx+PWdSvjQslSUAsCqDY9XrtUIhoWXiup7TlpPBf/eEtsckNl8CHEm6s2z5+VbdpuU11YsEiUAPb42l9nU2Sq+Gq6bNiqZCmYZF3NOr+3QOZ+/pUVy+RodPhniaV6nsciyaRahwvo9HU0q21tWoUTQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; 
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=5LnIUdLPBPXKjArYr6V4oI0zi2foZawcOEAVSGST7lo=;
 b=oB/JNXVN0sWDlejXPcqSaLpqMUKkpuuIkCkp934xFg2PpFQNnai+aBqLKiA6kBIDfxriDh3LyhDwuTuFh5vYjvYmCZs7AhxH1/Zt49vnDTfbNAWw/OGUWGxVwOhtK0txWibXbNkwnt3sBwuJS40W3Mjrm7GcPSPTuhIY682LetWKgHkbfRJg82pqfrOx+mJTlv3Y5jghARFmHfpvSeQbT9GnPT+T/lvgE/XY8HS9ICgohW96HSI2+AWs4UZwaQghrHWu6tuZUVY7IsqeKxGKf0tF8NpXmqnuleJWoLKOv8AcdmLAihnt0phE2lwutjiPn5G/6MN4qYPB26aPyajcCQ==
Received: from AM5EUR02FT048.eop-EUR02.prod.protection.outlook.com
 (2a01:111:e400:7e1c::52) by
 AM5EUR02HT059.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::289)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34; Tue, 29 Sep
 2020 20:43:07 +0000
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 (2a01:111:e400:7e1c::4f) by AM5EUR02FT048.mail.protection.outlook.com
 (2a01:111:e400:7e1c::471) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21 via Frontend
 Transport; Tue, 29 Sep 2020 20:43:07 +0000
X-IncomingTopHeaderMarker: OriginalChecksum:CB37E2A7CC1B7C59F6AE62BA9C198925EBE0034357504461EE5686908966BC2C;
 UpperCasedChecksum:B0805D4136CE6EEA0183FE3FBE484426F3423A701721F231431178356B5F4266;
 SizeAsReceived:7907; Count:47
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3412.028; Tue, 29 Sep 2020
 20:43:07 +0000
From: Arthur Miller <arthur.miller@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
 <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
 <87y2kut2cp.fsf@HIDDEN>
 <VI1PR06MB45265689118763E4B2F17C0C96350@HIDDEN>
 <87a6x8elva.fsf@HIDDEN>
 <d7b2af2c-3e13-e352-12ac-497f7ff1f2b7@HIDDEN>
Date: Tue, 29 Sep 2020 22:43:05 +0200
In-Reply-To: <d7b2af2c-3e13-e352-12ac-497f7ff1f2b7@HIDDEN> (martin rudalics's
 message of "Tue, 29 Sep 2020 16:34:18 +0200")
Message-ID: <VI1PR06MB452633E5D781317F61E1723B96320@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Content-Type: text/plain
X-ClientProxiedBy: AM6PR02CA0027.eurprd02.prod.outlook.com
 (2603:10a6:20b:6e::40) To VI1PR06MB4526.eurprd06.prod.outlook.com
 (2603:10a6:803:ac::17)
X-Microsoft-Original-Message-ID: <87lfgs9uw6.fsf@HIDDEN>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from pascal.homepc (90.230.29.56) by
 AM6PR02CA0027.eurprd02.prod.outlook.com (2603:10a6:20b:6e::40) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3433.34 via Frontend Transport; Tue, 29 Sep 2020 20:43:06 +0000
X-Microsoft-Original-Message-ID: <87lfgs9uw6.fsf@HIDDEN>
X-TMN: [rQJjHpq958hKSTT/k6mf2oU9eriVtjZk]
X-MS-PublicTrafficType: Email
X-IncomingHeaderCount: 47
X-EOPAttributedMessage: 0
X-MS-Office365-Filtering-Correlation-Id: 5c57ca7d-f467-43c8-20de-08d864b844f2
X-MS-TrafficTypeDiagnostic: AM5EUR02HT059:
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: ZxaQMXih3G/O04BvKqQYC2nJDM+oEUP1j3RpI2S9IIZi9HPAMg55F0XHwbzFvqgpIe7mssqsmiw+gzm9CEmZ1bZgAlmRlCB8A7qZ2tz//+TDvr0XVJkX/q9diFLXAB9tpoCh7DzbCMC1+zSnd3RbVyXpjbF1LmG5PRSIwDE76Zzbcp5kCvHGXMFpakgsHOpafnnWMXtUUdOCdxGzTvhrkw==
X-MS-Exchange-AntiSpam-MessageData: zELqRxH85f2opHPcwSzf4huE45R8tQcdg3W9rSGVzAtbsYc7lt/sNap4iR5GqP+6WNuehGNzVLdvlxpl1l9FUlFOdCLpVZZ6G1B/KTNZmG91UZs7gSeEtQK83vL+sXDhF4qTzR56LHZMLG0jNznH7w==
X-OriginatorOrg: live.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5c57ca7d-f467-43c8-20de-08d864b844f2
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2020 20:43:07.3090 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource: AM5EUR02FT048.eop-EUR02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT059
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 43672
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

martin rudalics <rudalics@HIDDEN> writes:

>> Indeed.  After closing the other windows
>
> "windows"?
>
>> here, I saw that the frames
>> were sitting in the background, but with no way to interact with them.
>> (Even after the Emacs process was long gone.)  This has to be a bug in
>> Gnome Shell, but it means that I can't debug the reported error here, so
>> somebody else will have to look at it.
>
> Have you tried with the simpler scenario I posted?
>
> In either case, with xfwm here the child frame gets selected as
> expected.
>
> martin

I can't say why, but today this works fine with my "normal emacs"; with
all packages loaded and running as server/client.

When I start with emacs -Q then it does not work; it needs two calls to
select-frame-set-input-focus.

I thought it might have something to do with focus and how WM raises
windows and gives focus; normally I have focus follow mouse but not auto
raising enabled. I have disabled auto-focus (need click into window to
give focus) but I see no difference in behaviour.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 29 Sep 2020 14:44:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 29 10:44:23 2020
Received: from localhost ([127.0.0.1]:56873 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kNGrf-0005sN-9K
	for submit <at> debbugs.gnu.org; Tue, 29 Sep 2020 10:44:23 -0400
Received: from quimby.gnus.org ([95.216.78.240]:34682)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kNGrd-0005s9-0a
 for 43672 <at> debbugs.gnu.org; Tue, 29 Sep 2020 10:44:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=/Iaa9WnOdV7ZsBtK6zMwoo1DN26IbT/auNHy54b9hkg=; b=S8GoGmTLqSjec5JnHt7gPqCuh9
 9nM+LYOLrKukTstz9xEj3HmlSWqiFcj1PF6NuaJhI79goDj1YYarumSTl3KxaWUunKuAOjXynA5Nb
 m20URshdv+6Vkh/Ofiz+IQRyp7lf+xxMmliqqbb2Ty5OCFsdXu1wf2qwSSGEUeEgxlbw=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kNGrU-0007xn-1Q; Tue, 29 Sep 2020 16:44:14 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
 <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
 <87y2kut2cp.fsf@HIDDEN>
 <VI1PR06MB45265689118763E4B2F17C0C96350@HIDDEN>
 <87a6x8elva.fsf@HIDDEN>
 <d7b2af2c-3e13-e352-12ac-497f7ff1f2b7@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXqrHHxuHeOV0n/
 //+Q3bmOAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+QJHQ4HBdvXUUUAAAGoSURBVCjPPZLBiqNAEIZ/
 g+7Bkz2k95DTZmFA+ylM0CXkpFIVlj3NceJTyBBhN8cFL3OKgtBTT7mlMFsnv67+q/+qEoHlV3ti
 Yg0EzG3fWraWCkTMrhebByYsoVnpxJxFxMAypxDTrqAZv5HDklmvAWm5QKFAwBWf1wi/M/sJFUQO
 VUE1L5lucmyMLbQAPY0K23qpxJddJjIcw+6Pan7FqZP5OHnRTBtnTsajf6zQevk7M9eFPpq+Zu59
 4LUfztLs+3lgyqEF5tTH7QCNAKTgnH1YtYjL8OKdZ2yBGMQvcv9YvT+pt6v4fc0UBzsYvqbiS27k
 8g6KFMSy8z/uKDd7Jx2T807Au771oNiJwjYWeaBx2raAdC4dINMC0LPbZuq/LpAo+HPf7P7DiTar
 plIYOXdverZCRNhXIrN6FenzmeJJkvUdLZD7eNROF+mu/nJzt1q9KXDjklGnY8O7ilx/7LkArIrG
 jGLLBodV9Gw8K5Ss65FTMxoqAVL4qBrdumqarchev0qbABWn6U9mu2iQcxQlukZDtc40jL6FupHl
 R9IwSBAWRRL+A9HYwN1lk68TAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTA5LTI5VDE0OjA3OjA1
 KzAwOjAwNsraCAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wOS0yOVQxNDowNzowNSswMDowMEeX
 YrQAAAAASUVORK5CYII=
X-Now-Playing: 23 Skidoo's _Seven Songs_: "Tearing Up the Plans Pt. 1"
Date: Tue, 29 Sep 2020 16:44:11 +0200
In-Reply-To: <d7b2af2c-3e13-e352-12ac-497f7ff1f2b7@HIDDEN> (martin rudalics's
 message of "Tue, 29 Sep 2020 16:34:18 +0200")
Message-ID: <87h7rgbq2s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  martin rudalics <rudalics@HIDDEN> writes: >> Indeed. After
 closing the other windows > > "windows"? Yes, like the Firefox window. :-)
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43672
Cc: Arthur Miller <arthur.miller@HIDDEN>, 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

martin rudalics <rudalics@HIDDEN> writes:

>> Indeed.  After closing the other windows
>
> "windows"?

Yes, like the Firefox window.  :-)

>> here, I saw that the frames
>> were sitting in the background, but with no way to interact with them.
>> (Even after the Emacs process was long gone.)  This has to be a bug in
>> Gnome Shell, but it means that I can't debug the reported error here, so
>> somebody else will have to look at it.
>
> Have you tried with the simpler scenario I posted?

Nope.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 29 Sep 2020 14:34:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 29 10:34:37 2020
Received: from localhost ([127.0.0.1]:56826 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kNGiD-0005ao-8j
	for submit <at> debbugs.gnu.org; Tue, 29 Sep 2020 10:34:37 -0400
Received: from mout.gmx.net ([212.227.17.22]:34875)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1kNGi2-0005aC-3l
 for 43672 <at> debbugs.gnu.org; Tue, 29 Sep 2020 10:34:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1601390059;
 bh=e/b9SyVsXoZ7rW2xuBaCFNKdjXd9bhAwNgcBR0njRBw=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=jVwXBr9ok1B/4RO1hbSrvtYNwd017YFohQzhrO8htq8jKwV3ecsLqK1BrVHvqLnGM
 nTpSu7cTn3Hy3FAJWg5ju1/c1bwurHOTgEkutJWulzac89Zb59tUk2L/zaZlS/xTqd
 kk6LEiz/nK8pjPufhfxs73UDU8TWH2UlGNH7lzjU=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.101] ([46.125.249.51]) by mail.gmx.com (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MKbg4-1k8u9P1PjA-00Kx1l; Tue, 29
 Sep 2020 16:34:19 +0200
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
To: Lars Ingebrigtsen <larsi@HIDDEN>, Arthur Miller <arthur.miller@HIDDEN>
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
 <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
 <87y2kut2cp.fsf@HIDDEN>
 <VI1PR06MB45265689118763E4B2F17C0C96350@HIDDEN>
 <87a6x8elva.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <d7b2af2c-3e13-e352-12ac-497f7ff1f2b7@HIDDEN>
Date: Tue, 29 Sep 2020 16:34:18 +0200
MIME-Version: 1.0
In-Reply-To: <87a6x8elva.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:uxMWAfQHOw4e/Zv+LGk11KK/iAJ3axGdjvkvxnAfsiY2k7cRi2V
 5OGp0EE41Yk4eY+XOsj2HqZ/wQ2MKEaFZYduLjmyVvIGLbaW8UkcYsQ1kUOyxIrR4tL5O9I
 I0a6HdYWt1NPJmc90maiMlfJLV2Z3AiHNHM+odaqWUukRO+NPj5koX9Mho/TpF8M1JcBNON
 E3T5016YRLvR9ULHXueYg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:bGq1xusP5Qg=:ypfmvDA6uENPcEP11KY6TQ
 CO8W+qhox6d4zHTVaye9LudBZotpdJK0FwIHNpxN5ul7Tx5xf0xWF6LD4qy/FOYyDmpjmoZcf
 aNpkfWR/j2pb1JgJ7SfaQGHfyfNHYODoAtjcoXeov1g7q/PK9Tlgjj3l6snjbUe1n5015OZfn
 2W1q1ZiC04Srer+Z708Nf8y8z4fUEHYfFWlsU1551DWhkkAmOmBSD+ZwzZxCC8mc8Xm9+neuJ
 tZo/HQkQlCewl2n8wgZUzL+EWaFQpV4TDxaeMLhvnldusnRCH76fFBZ96obXtJRyMDsQFp+6i
 OdiCWWcZ9W606ufxqLaACyk/e5//aCVgypbeWSh4ch1DHdezmDDovLtow6lqlFUr2jrdTVm6S
 28I+3Lb70mHpy2u3riVzXKNV3HJxpoyAdZBPX+bfSSiUzBIwY2zdx0DdKbn+4OIlTR06I8tT7
 vB4gdcQRq79t92HR20x8aH/VyaWmf6GwqSg4sumELXJAYPs9u2Otqwt9Yk5GRLumEfxKFThXT
 CPitzyM7JNT9DwynqdpCO9vn030gJ2uGfq2BsXc4mueET0dPYM5NUWYETe+S7gHi/qJy8NfQf
 cSqA6Wc8eYsmADUl2xZl/YA+0JBG05+xkB9DauYpfzBBE++bCiNwQNT8UbG0/959znKP39C69
 R1iq74Q1DJ/DlS8cJnLmY56wnXtyZwkaETpeRW7+hn/yiEl8uIv6QzNA9Bwn/kT2GQZ5Qg2yM
 3xQc82nG7o04jEwn4p3B7ROzqKlC8FTiG4H7Zux4C4pjjlc8vYdkdv9Ja/OJcAIxXa/tWDsrr
 7asUG8V4urzD8xnNkKhJzYlCbbRYkUx9nfPQ8HMMJk1VAa4cEME83iO7zpd8sgtNvCuT+/nNA
 vKwDd/U8ppNV8VtINMDbbm1+0jVAhjaN+v4adaNNAC5g/R5v5lqUmvC47RLi5ORCVom5Auj8m
 An4st9vquM3EbrhFGMzgoUFJXKmxEzUlX7n3YudrSBO5OErFY24vONJdx34XJtJwyVhmr3zyK
 BYZWR0SIYMpcTCgsOBc9t7Yds6xRvOEHt6X5WVDBa9Eo23e+BhoM3Z+eaqRL3BP1DcnOlACgV
 rUNViOPhzW6Ga/XlqHMx1uVGKtzGk90s1J4+jUJemJkIIFvfXmXHWn/vDYKQzT5Nf04VNfK6I
 Om2/lItR7dypQsv+iH+aUlemhDBpFl5h92qXnZ/sNOAhYuSmao0OyaujbMkFXdwmuotwAjW45
 WPsLWYyZfAu0k9dPPsXTSIxirH640RG36ffWSiQ==
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 43672
Cc: 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

 > Indeed.  After closing the other windows

"windows"?

 > here, I saw that the frames
 > were sitting in the background, but with no way to interact with them.
 > (Even after the Emacs process was long gone.)  This has to be a bug in
 > Gnome Shell, but it means that I can't debug the reported error here, so
 > somebody else will have to look at it.

Have you tried with the simpler scenario I posted?

In either case, with xfwm here the child frame gets selected as
expected.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 29 Sep 2020 13:47:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 29 09:47:12 2020
Received: from localhost ([127.0.0.1]:55267 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kNFyJ-0008AD-Qd
	for submit <at> debbugs.gnu.org; Tue, 29 Sep 2020 09:47:12 -0400
Received: from quimby.gnus.org ([95.216.78.240]:33966)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kNFyI-0008A0-1l
 for 43672 <at> debbugs.gnu.org; Tue, 29 Sep 2020 09:47:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=RlwbuzlSmleNxoKsJ2uYy7XIB0htRBgXQx5nCGUmDcc=; b=B41KrbxoNsXINd245a6/8I5ykI
 +Ka3TfFsY4jux8XTcuso9FENnkCRpIzDroV04Sgm+/SKQ3Kq+Tl1ZrXq3wCVzG9mL1uPCNWqkNU1A
 mkzb5Dk2Nx+et2vHt3Zb8HMH4xkHxi5qLlatfG/Hf+JjsUBKUY3BqDUeLE1hrYveIXTc=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kNFxy-0007QM-SS; Tue, 29 Sep 2020 15:47:03 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Arthur Miller <arthur.miller@HIDDEN>
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
 <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
 <87y2kut2cp.fsf@HIDDEN>
 <VI1PR06MB45265689118763E4B2F17C0C96350@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXv4dLPtquldoSS
 WmliESU0Hiz///8M5QULAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QJHQ0bHrWDe60AAAGvSURBVDjL
 ddTBcoMgEABQNmnvrpp7Au3dsHBvBD6gKv//K11AI2ntzjiT8MIusBIhqsDnJ0BxHDW0eAQnREnN
 QdZOkjoEUFqZ6wEgSUnDEWhJ5gC4NDp955Qd50N5KwBAI3Za8oxLjGRjnMpyoSONVstrhhTfZQZ2
 ylEYVVMBZJAq+KArGPIM6EbrfaAKrnkG9GQXHx1xjc8CTQb84IWESOlIVoACxhj+kqGkmiDX4HN1
 Mc6kxTbjW5QZUo2W4f6EIQO0RKOylGqvqZoCSiknlcrwXkFLUunUpx1yKuj559wMxOYJc5NWZZzS
 JE3p6/t+iOAdkSE/1BAHEGfP4o0fM5xX4C32voR7gYjC8GB6fHm/dugPYf6d6uafNc4r5OIwL2GD
 Ew9Gfh4lk/dbKuDBsMF5yTDHBTOk+NpAb/BRIO/8slBouDeWlwv9KzjRJRj45angtNBDQKrO7azh
 zadXPvV34kZVxS/O8vF3ZQa+wCQK3MS23pyqVWk7bZzSFQazgxCpkWAH3KG6shAwgUg7dPf69sfy
 K4ZHfcUZysXuvXsZ52VNf/5Q1tDin+Bu/ABqYZPDt0KCiAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy
 MC0wOS0yOVQxMzoyNzozMCswMDowMM9iTdUAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDktMjlU
 MTM6Mjc6MzArMDA6MDC+P/VpAAAAAElFTkSuQmCC
X-Now-Playing: Cat Power's _The Covers Record_: "Red Apples"
Date: Tue, 29 Sep 2020 15:46:49 +0200
In-Reply-To: <VI1PR06MB45265689118763E4B2F17C0C96350@HIDDEN>
 (Arthur Miller's message of "Mon, 28 Sep 2020 16:40:12 +0200")
Message-ID: <87a6x8elva.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Arthur Miller <arthur.miller@HIDDEN> writes: > I can't tell,
 if it has something to do with Gnome shell; I don't have > it installed myself;
 but than it is probably a bug? Emacs should display > and kill child frames
 correctly regardless of the [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43672
Cc: 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Arthur Miller <arthur.miller@HIDDEN> writes:

> I can't tell, if it has something to do with Gnome shell; I don't have
> it installed myself; but than it is probably a bug? Emacs should display
> and kill child frames correctly regardless of the window manager.

Indeed.  After closing the other windows here, I saw that the frames
were sitting in the background, but with no way to interact with them.
(Even after the Emacs process was long gone.)  This has to be a bug in
Gnome Shell, but it means that I can't debug the reported error here, so
somebody else will have to look at it.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 28 Sep 2020 17:59:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 28 13:59:33 2020
Received: from localhost ([127.0.0.1]:53923 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kMxQy-0006L3-Pp
	for submit <at> debbugs.gnu.org; Mon, 28 Sep 2020 13:59:32 -0400
Received: from mout.gmx.net ([212.227.17.20]:57521)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1kMxQx-0006Kq-Bs
 for 43672 <at> debbugs.gnu.org; Mon, 28 Sep 2020 13:59:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1601315964;
 bh=T1AwtnptNSegnez44PtRVR1gKGJu/PBnmtfIScfwuH4=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=HiPZieYAcUbxh/um0Vz0GYWEhHa3vtcXga0SmlcM26pctE6D8pJJBI2YxZfRvuE5K
 ilt1b9g4Pl+3g/OS+uDL3iu1DCENOSPAaPuoZYVK6y5YjvwhQO4tKa5Q0RgjAn4vVQ
 qFD+wBBBNtxeXdaYVisPn9+Wz5uGq36ODeUpsgL8=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.102] ([46.125.249.25]) by mail.gmx.com (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mw9UK-1kfrIG2j8m-00s6kg; Mon, 28
 Sep 2020 19:59:24 +0200
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
To: Lars Ingebrigtsen <larsi@HIDDEN>, Arthur Miller <arthur.miller@HIDDEN>
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <c005422d-b87d-cec6-0196-e89d6d4682a2@HIDDEN>
Date: Mon, 28 Sep 2020 19:59:23 +0200
MIME-Version: 1.0
In-Reply-To: <87d026uhp7.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:j3QwxNJPFPLjKyYj93osVy24WjiwiXTHtPC1F7xwJ59vPecr3pu
 G22na8JU35PMdgag/0RKVqYfv7/KkS5FUbivyXy6LQmDDzTxPvYhN78TK4jgzbljQWuuyld
 8eSdEhFZOHzmmLirgleQBqeZaB6r+/fVTyVycd3daPQ05MMKt9CCJgW7NdNr3Ja8ZcERED3
 EaVE+p5GAi1JMFFbA9Bmw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:+B84kF38jLA=:lHYIaTv9bvtZYLEmSNB3a0
 W+HYH6MTlZ/yypmn7BAA/FBZj+GIOBAY3cFCmLeIoDlbbrbuvAEpoU8tSb8OBn3RC6xtILRTK
 NIFjafw4X6sFqrp057/tf+ba7ze/AuQmjhawCpKmjiVs79V5Vq+MDlc91PROLmz5vkk7732Nu
 CuSowh2zbnMFiAN89e8/dD9afTgyQvqcxjQJdv71ajQHF/JpTF5Up3Nu0T/dTnpkkivqnQmta
 VT/Mzos1R/gzQc/MtD0jth8/19hOS2zpOpKZCXgfbowrsE3Ld4DGoHcLPxkEtoMHXkMP4bnmh
 vFlTFvpiTpRBi6jIS17ScTGPPedQpbU5UmAJBUXk4kAENvzhKsxgIyEKYFI4Ar3QOqMvzYFIw
 y6HD7NadMOH+gRcr/zSI71OWm929OJGqz37vQ3JJqkLZAAlVKzk68xjvQ1+w43AWLGBamBk7K
 6fugaUOr4in5m1/tnJrdSnTUV2hP4dYfZq33bpGU04fEXZS31c92u6RbEP0zv2MVIfbgMuzBy
 ocj9OLZssA3+W1VnV/bp5WuDy4IyGm7GnwPmikDQGJvWoPGrhourrZa9lHfcE3HdUrTj7BkVP
 bYd7mREzBruPIzTnAmehSR+8UsJIUoUvKjxUm/tcs4Jf+ri68jVrto8WfeTVaF4VyKUxNrmIB
 IYPvuk80S4BNIFDb9b+9iCfDp920mBo3uMbkOXGRYaDAft1qp/05Zg5coWLB0OrXt2ufr/bMC
 XmwI+PDDWQl+qbwtNVa1PuBx+lWDcL9W8Fou88UWUkmIwqLHweJzWhjhWfnlS3BeJA4li2wga
 iCO9uzNBWoW/EHr28UwMCZJAwo42OA2cdqiyWSztZOl+n1gqKyE+Tgebdpd3ZbC2qH5UPjq1y
 OeqlvtXfqM98qciGJh+swHwXnYGfjtp5xDChftTu8CGF0WxBlftZIXlibZv+UhitM+APj+wG/
 L1MsP9Qj7gsHmt5vWQ0Bw9jgiVUi+7TesNLbHGKilMRtZPILHaoStZginT7oz4n0hNqBGURD0
 y1Aq/Pl1/4WeNj6e5BGL23HVMOySuzbmQw6KDwdCQdtdhFQtKvJXUzqF4kCJL4ihPjS6ZKlXu
 NiD4BGNj7nNUW1hHwzabgEsySMP/1FL7MWnjI2SDlLxuhk+H3pE/tFsbsoZaduNUa7nigPlA2
 iWyZPFGHFDRyvTrIYmWZwHV43+mGLjFH28uHVRtu1qVDdXatHouLDKeSt110g/ZHrkY3MStnO
 jds6Ml+cKyO8Ad1xBxBmVsYnqcro7C07WZgB83g==
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 43672
Cc: 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

 > It did something really weird to my Gnome Shell desktop -- even after
 > closing the Emacs that opened the frames, Gnome Shell insists that
 > they're there, but not responding.

Maybe the child frame 1-to-1 covers its parent.  Either way Gnome Shell
(mutter) doesn't like child frames.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 28 Sep 2020 17:59:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 28 13:59:22 2020
Received: from localhost ([127.0.0.1]:53920 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kMxQo-0006Kg-DY
	for submit <at> debbugs.gnu.org; Mon, 28 Sep 2020 13:59:22 -0400
Received: from mout.gmx.net ([212.227.17.22]:35847)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1kMxQm-0006KS-CH
 for 43672 <at> debbugs.gnu.org; Mon, 28 Sep 2020 13:59:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1601315951;
 bh=t9m9b1wV1AYRZCKi5a2yyatcwmLTfobYqYO2zxrkcOs=;
 h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To;
 b=H2n8OQy3e41qFoXGkM3L2XoC8+7Kcj9VGlJvPtWIZKNfbCcuBhoYVypnhGyuN+2DJ
 srqmtOToxyw64jpr7eCdhyD7wx1eWaCVA6s+p3vRa2/jP424+KNU9Itg6yLHBQIXa/
 iUliGAD3E0ygxoTj/xXessrK9Dzul7tTQtbCEGBY=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.102] ([46.125.249.25]) by mail.gmx.com (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8ykg-1kJ7g902Gk-0064VU; Mon, 28
 Sep 2020 19:59:11 +0200
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
To: Arthur Miller <arthur.miller@HIDDEN>, 43672 <at> debbugs.gnu.org
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <d8e11379-e005-4ee6-69cf-72fe084d3947@HIDDEN>
Date: Mon, 28 Sep 2020 19:59:08 +0200
MIME-Version: 1.0
In-Reply-To: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:q9XzbqD3IUWrhaejSAPOdLCCksVjA+0Xso/iTvRvm65G+ezijJv
 HVL57JrVuiq9cG6kgFpg4ieWxZxDqkVLWToOmoZDEtmarCWHAa68FyRxmyJrl4VOf+lkEo/
 ezF79qjLNN4Ytn1NHAf9UUgaWRZYDc+bRw/Fs+Bvroj+LnPjAg/wO683CnweNyVh6LRjWkd
 uEkKytRWm1hx5+OfvRRJQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:e3pb+D9jP68=:cJvcHqM6dXHMDCnvHD7E3x
 zvsEANjIZMSltPWHetKMQMDNqY/gHmvyQLwc2W+xVll8xdEnpcG49eSnX4ue1OYrk1NsgzxA4
 RIqAbrOyiO9Bwg6KQHI9yYVMXvS/VjAhpo2WQUeKeFi6yusrdHd47wNjBxNjbOKFZCk8DLDpx
 IoA1Sf6i712bGNKSQ89awtXmvgbOsq/FepgFAtFtxQ5pmPOvuNDZsWc8JwtofSe0hrxZ8sL2w
 srjYGxW8ZwrjaW5U6QhNrcURWMX7e4oNjIXYgbb7y5MikbGYaF4Cuok2gAbcDvW/0xdqOSw/u
 nDwkCoqJ3AjjnFhToJmPDS58j44jNtfXsax66FIatbzMZnEGllb4F4fsWzxPVyhST44NbOXDd
 qKor9/JTr/wEdglvsCZ8qjqOIW8FiDG/+WKQfyEtMAaL6XNRRqBCw+gj4tl5Wt9mofT5nisG4
 r4lbRCoJY8r6L9PDiZ+V5nBN9n1IGzRYZuuweKyETl9s5r3sjfVcWUv91asIpwKUd6QFzpCiw
 m5vMOg+sxBCkZaHYUudRa6xnWpnlzUe3Yg6qamJBZj++hJonh4NMiF5942eE10WyF2oGalgxb
 qnWiV8k2Bc0lZ3Oo5jT9lk3j1NvCkCZLS1ggrPQyH48qRpKZRAxBw/Wo1/PQk+0l89Wmj8g0u
 m8Kf7OOTAtPEt6CRgVXzllrwGBE8kB/wbfGkSiATm662Dzd2SCoYxgq2fR/bf54ectpF3jwje
 PQUyBVNK1gXDCs9HZklEt+D3VIXiYaV2ZG8UFiMP8fHczPZE6xLjaxVz2r8d9CPfmiEKG05N8
 DecTkS6/U5My+78EA0kYKf7sbho78s37ICwtcUWt/gOcXhBlIvzhrxB/DmLvbJO/vrxh3UbFS
 WvjpgMxl3PnJEi5HlIfPXOsYK5J9PcXpkG0V5mcyxI56ip+UjPChTsW84FHbNxWKQfQiFUORG
 Gb4z5p8MTQ6hIEWbkCarGIpJGSIT82ET7IVUXCpTheycFWpdwhDvMK53QGAyGEuROTdlNVcd/
 2rxqWKrIG5cIbvLmw6UBd4m6h4N2Xq49nu+LZRSi+9I4OHJKcsRTZovAnKepMc5akWN7LPI9o
 VKx/kuhmMXXPgPHhIXmL4kWCIqQVgi56RCaQHOCYXc+Nm+jTCTBWpvqER1isjc5vuEJong6UI
 765uuk+4lrPqFmWXESraYiej9XglwTbsolF4qHgOGJmp7BTeWIODvXSWsFbOQB+UOaxiRKLx/
 LQGT88VdDXFUZ4/iGEvqHcGam7byW7G6rMeCVEw==
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 43672
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

 > When calling
 >
 >        (select-frame-set-input-focus some-frame)
 >
 > the frame is raised, but does not recieve the focus. I have to call
 > twice to 'select-frame-set-input-focus' for the frame to get
 > focused. Docs says "focused if possible", so I am not sure if it some
 > bug or/and how much does it depend on my window manager used; but
 > calling it twice consecutively works.
 >
 > I have attached an example code. To reproduce, emacs -Q, an eval
 > attached code.

These two settings don't make much sense

           (child-frame (make-frame   '((visible . 0)
                                        (undecorated . 0)

For the moment let's stick to the simpler

(defvar child-frame nil)

(defun make-child-frame ()
   (interactive)
   (setq child-frame
	(make-frame `((parent-frame . ,(selected-frame))
		      (left . 10)
		      (top . 10)
		      (width . 20)
		      (height . 10))))
   (select-frame-set-input-focus child-frame))

(defun delete-child-frame ()
   (interactive)
   (delete-frame child-frame))

If you call 'make-child-frame', does the child frame get selected?

If not, we have to try some workaround, maybe a (sit-for 0) before the
'select-frame-set-input-focus' call.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 28 Sep 2020 14:40:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 28 10:40:24 2020
Received: from localhost ([127.0.0.1]:53695 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kMuKG-0007qw-35
	for submit <at> debbugs.gnu.org; Mon, 28 Sep 2020 10:40:24 -0400
Received: from mail-oln040092071033.outbound.protection.outlook.com
 ([40.92.71.33]:45440 helo=EUR03-DB5-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arthur.miller@HIDDEN>) id 1kMuKC-0007qc-4k
 for 43672 <at> debbugs.gnu.org; Mon, 28 Sep 2020 10:40:22 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=HedWJ7l+LUxF3u4L79ZC5hYp2SaVtbcryqfNSu+iHvUvq6RzMZP1jDZutQNEiSB7ALR7pJFJoncX3Zh6lG/9VsRwzeduGDg3VmpKhWLteVpWNDnP9KedHqyw7NAskDEr3eU4a0Wu9QmU8+9sugYvac/mqDRM3y1CkJo15XL+mYum3m+voWOuT6GWpYANOsMj8nzTSMEqh7NdHjVnUyeV53GuNumvVKKAeClhyMNdlskdF0VuCm3l16JErze27U9TYY+XX2jBjxahTjGstRAGZO2UVmbmh7ODF9wPSs5PyuAJPSZhFwdDwpO27NK19mwMglfWMapS0rmwzElTYc4pDA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=JyGnxa57dGdKQeS5+X79vlydtBPLBuX/qoO1Wt5fU9g=;
 b=dz2rULjhRMUdSSMc+DrBnEeAYyzngwQf4/wdTsGFRNRUAb4xHR8zMWmkaErK6bvHOg5ceMdgUYqTiW9IYEN923pIkOCRvXF24gVYY/4SqkjM49KKVRBJ8s6pJnLxtGozjpiXsQTPgtqcvZXu79iNNeOEQgSaSaXOx9MUX9QuLzbbcA4BCEou0kKVBhscLSY+3dWeJZwOdb9JbfVCxcw5OkSXuIPBpwAZGKWck0ZLeXgjoS3vcArE0lGi3mS4vBU/zg191zsmUSyxJbfeYp+UFEEu0mHEWji/r1hl63KRyb4VUw1bfUKvbylGfQZaFEraXngBvUzpalKVWpgNMIN3IQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; 
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=JyGnxa57dGdKQeS5+X79vlydtBPLBuX/qoO1Wt5fU9g=;
 b=kml8UAYePJcdeX2PW1fS4A+ypw8aWoUTAb5qZD6BsIK/yvr1N85vSWocJi8isj97kGR2bHelKbFGo2nemkm+JvUadOc6CaxVhKVBluKTlrR5wVIA0ETzQsTxqRcLhTsfsQ+6YwobM4xblugE/5INZ02usTMNwdPI9OD2VcmRK0RM6ESt+N3P0mKwkonPnZEalRa6Wq9c8ZABPtg5u1Z8ToorEk3aG/zIOUyayMiJHY65vi6GRT0nZ7tLVG8WhQeiSNL9fm+wiYzpv65Flczo8MNtSD3zfpxtaKgf/9sZDZqqbJv7TTnNeUNbpTHtn4PHksmgA1nLuYjnuDFr0dHY1Q==
Received: from AM5EUR03FT014.eop-EUR03.prod.protection.outlook.com
 (2a01:111:e400:7e08::4b) by
 AM5EUR03HT170.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e08::387)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21; Mon, 28 Sep
 2020 14:40:13 +0000
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 (2a01:111:e400:7e08::49) by AM5EUR03FT014.mail.protection.outlook.com
 (2a01:111:e400:7e08::130) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21 via Frontend
 Transport; Mon, 28 Sep 2020 14:40:13 +0000
X-IncomingTopHeaderMarker: OriginalChecksum:A4D3A1E1D07D0F441F707CA74B091AF98D14FFCAB21ABCE2B06163EFBB537185;
 UpperCasedChecksum:76E67040866BCC9D6A54E42B7F1EBF7C5BCE620CFA5BE1EDC982AF5882AB7637;
 SizeAsReceived:7682; Count:47
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3412.028; Mon, 28 Sep 2020
 14:40:13 +0000
From: Arthur Miller <arthur.miller@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
 <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
 <87y2kut2cp.fsf@HIDDEN>
Date: Mon, 28 Sep 2020 16:40:12 +0200
In-Reply-To: <87y2kut2cp.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon,
 28 Sep 2020 16:14:46 +0200")
Message-ID: <VI1PR06MB45265689118763E4B2F17C0C96350@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Content-Type: text/plain
X-ClientProxiedBy: AM6PR05CA0011.eurprd05.prod.outlook.com
 (2603:10a6:20b:2e::24) To VI1PR06MB4526.eurprd06.prod.outlook.com
 (2603:10a6:803:ac::17)
X-Microsoft-Original-Message-ID: <877dse0xtf.fsf@HIDDEN>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from pascal.homepc (90.230.29.56) by
 AM6PR05CA0011.eurprd05.prod.outlook.com (2603:10a6:20b:2e::24) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3412.20 via Frontend Transport; Mon, 28 Sep 2020 14:40:13 +0000
X-Microsoft-Original-Message-ID: <877dse0xtf.fsf@HIDDEN>
X-TMN: [gtSCUWGTjNMzxBial+mfdUTZBpPCX0mL]
X-MS-PublicTrafficType: Email
X-IncomingHeaderCount: 47
X-EOPAttributedMessage: 0
X-MS-Office365-Filtering-Correlation-Id: 1232def7-5f2b-4832-ad3c-08d863bc688a
X-MS-TrafficTypeDiagnostic: AM5EUR03HT170:
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: MGi9lER//mGor2TWlRGwxHZkAOugkH6Cbhcds2ibo+ofgtgMEGnBkmEggpGZGThU/xyqo0JkgqQuuex9trjAf2sDIrKjgH5zdgWKv7oIKatpUJYbDr5H3Z1s8H98TNzZgUNjhMTxe+EXi62FbRR8bfAM/paEzOHzbEaMhBXrSEA63jHAqF9zov7g2JYAY436v8XNb6HOGK/3I5+eYHXbgA==
X-MS-Exchange-AntiSpam-MessageData: qWTzbr7ocXOudG1ZCA2hVubYE545yTYSql4fePlzYc74QiOGPREHcLcDb2kVt00ux21BDyryU7xm4QRvxNxaDylaKuCaV62QA7leSj17pLleHX0VjNFRo4PXCeHqLAFsn5knjzwm6PqgGl5D3hW9zw==
X-OriginatorOrg: live.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1232def7-5f2b-4832-ad3c-08d863bc688a
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2020 14:40:13.6282 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT014.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT170
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 43672
Cc: 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Arthur Miller <arthur.miller@HIDDEN> writes:
>
>> Can it be it just ended somewhere outside the screen?
>
> It's possible.

I usually click somewhere in the middle of the screen in Emacs when I
test :-). The code is just a rough scatch, I was just playing with an
idea to see if it could work. You can also try to change the test
function to pm-show-at-cursor, and just have the cursor somewhere in the
window. 

>> Did you run via the "test" function (pm-test)? It should take pixel
>> coordinate of the point and try to place the frame at those coords.
>
> Yes, I did M-x pm-test.
I can't tell, if it has something to do with Gnome shell; I don't have
it installed myself; but than it is probably a bug? Emacs should display
and kill child frames correctly regardless of the window manager.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 28 Sep 2020 14:14:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 28 10:14:59 2020
Received: from localhost ([127.0.0.1]:53668 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kMtve-0007DC-Sa
	for submit <at> debbugs.gnu.org; Mon, 28 Sep 2020 10:14:59 -0400
Received: from quimby.gnus.org ([95.216.78.240]:50508)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kMtvc-0007Cx-6m
 for 43672 <at> debbugs.gnu.org; Mon, 28 Sep 2020 10:14:58 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=fdeEPsZJ44Pr1czdf8C1nsSjfk8BaOniTzQ+WkfMJzY=; b=kw92u7vSQbbk63dEj2wSBYPzxx
 3aYniDp6kkw8DSVoBTnxv0jyj37xbVc/FfFWzMvNVKHmHnj/F+4pUKxkLZ+VYe+2OeuOuRRIboaPj
 rsjip6k6bokU2Ryp4R7whLN9pohtdmV1DITJmT7+XQU05e4md2LyiyNouKRO1yJms+Uo=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kMtvT-0007ui-F2; Mon, 28 Sep 2020 16:14:49 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Arthur Miller <arthur.miller@HIDDEN>
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
 <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXv4dLPtquldoSS
 WmliESU0Hiz///8M5QULAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QJHA03OggNk7cAAAGvSURBVDjL
 ddTBcoMgEABQNmnvrpp7Au3dsHBvBD6gKv//K11AI2ntzjiT8MIusBIhqsDnJ0BxHDW0eAQnREnN
 QdZOkjoEUFqZ6wEgSUnDEWhJ5gC4NDp955Qd50N5KwBAI3Za8oxLjGRjnMpyoSONVstrhhTfZQZ2
 ylEYVVMBZJAq+KArGPIM6EbrfaAKrnkG9GQXHx1xjc8CTQb84IWESOlIVoACxhj+kqGkmiDX4HN1
 Mc6kxTbjW5QZUo2W4f6EIQO0RKOylGqvqZoCSiknlcrwXkFLUunUpx1yKuj559wMxOYJc5NWZZzS
 JE3p6/t+iOAdkSE/1BAHEGfP4o0fM5xX4C32voR7gYjC8GB6fHm/dugPYf6d6uafNc4r5OIwL2GD
 Ew9Gfh4lk/dbKuDBsMF5yTDHBTOk+NpAb/BRIO/8slBouDeWlwv9KzjRJRj45angtNBDQKrO7azh
 zadXPvV34kZVxS/O8vF3ZQa+wCQK3MS23pyqVWk7bZzSFQazgxCpkWAH3KG6shAwgUg7dPf69sfy
 K4ZHfcUZysXuvXsZ52VNf/5Q1tDin+Bu/ABqYZPDt0KCiAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy
 MC0wOS0yOFQxMzo1NTo1OCswMDowMLlEXhoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDktMjhU
 MTM6NTU6NTgrMDA6MDDIGeamAAAAAElFTkSuQmCC
X-Now-Playing: Cat Power's _The Covers Record_: "I Found a Reason"
Date: Mon, 28 Sep 2020 16:14:46 +0200
In-Reply-To: <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
 (Arthur Miller's message of "Mon, 28 Sep 2020 16:11:48 +0200")
Message-ID: <87y2kut2cp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Arthur Miller <arthur.miller@HIDDEN> writes: > Can it be
 it just ended somewhere outside the screen? It's possible. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43672
Cc: 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Arthur Miller <arthur.miller@HIDDEN> writes:

> Can it be it just ended somewhere outside the screen?

It's possible.

> Did you run via the "test" function (pm-test)? It should take pixel
> coordinate of the point and try to place the frame at those coords.

Yes, I did M-x pm-test.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 28 Sep 2020 14:12:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 28 10:12:02 2020
Received: from localhost ([127.0.0.1]:53664 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kMtso-000795-CO
	for submit <at> debbugs.gnu.org; Mon, 28 Sep 2020 10:12:02 -0400
Received: from mail-oln040092066053.outbound.protection.outlook.com
 ([40.92.66.53]:32165 helo=EUR01-VE1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arthur.miller@HIDDEN>) id 1kMtsi-00078f-Nt
 for 43672 <at> debbugs.gnu.org; Mon, 28 Sep 2020 10:12:00 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=EBWIBkiRDSwsasO/Fka5+tCl1ivMQmLaIsUhqGVbbBn1elYdeiCTw51XvnncVLhCwx8rPn+Rd5EGWYKSMQbRvMEtQb+PR1N/zHhVeliVKECqYUEB5PZ/4b6bHKaUq7W8gtCx3zXA5MtNGDSFaBLp2jYI8W/Gk2Ymb++Zb4gxSbBuKtg/nWV/OnhSC97Vt/wdTK1JhbceQtxnwX+sosNEZ0iV4pI+vYuufP/rEuQltGcncvKmT7tGMUlOxEFdpZjTU05Ck9qVXoCBHRmsKgCHPUFvo0rx3N1yS7dNUlFL83mAuCZy6/lIX0Dq2/KKN5qFjpVhx7moErEmljAtHiP+NA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=HW9KPJZ6e1L+97ro1jVqIgMHVkVxYRzy4Vg0Zg1fQQM=;
 b=KI4DmUSV8INl9bqPzFV2fzFNKmW20+3/Q6z7ryi4JteBDuphiw2+qHc+9KaTu6Y5PNDHDfzepiYa5ERCu7xFB68RtgJy4IF7dWqqUKzOM1deleFfqOFeJdHxT4EaNlNcZJTE2/yleBltfMdjyB3m+fq9MSp4vdmdIWMaW/McgRm9SgMYA9gbZEvj8Rm2VRax+2SCzOcuyJ8UCU9nZQN8/tZ7b3Fa0hfHxy4Og9lu79PLouK1mBjPu+j2P/ypRkXQRjN8qxkT+uuvDc+bjLQPy0/kisdnpgXJypix+QFX19HeSMm0q4BQKk/iHAKXjBNspqnXi4clZCitUmgNHwtYJw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; 
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=HW9KPJZ6e1L+97ro1jVqIgMHVkVxYRzy4Vg0Zg1fQQM=;
 b=oknWbCuhm/CI7CdxtGBmkM+dP7LjADQYq57TbDEgDA+W+Og0fhx3FcuSyf5GKcGHsIuubMbfYJHb0xTomf/d55FGofj3pACbgz36oYGjR/o/sIkSIwAnVRw0N+/jExi7bWs6QINb41XZVwUILyQFJdn6lsF9d6hOyMr+r6ALEM0nCBdusal9pFL3bKsBBRdzwna68hbUuln/3IlJp6HFCHO1uOEP7wqR8b1xipWbt6eICYOXxWlt6xr1jiYGZbA/F3iAuAQBefltwdFBMopRiDZ7SizS9ZnXbcT4QCQCPA0p1wvONjFAwh7xvqrLis89oadSm2Ck0ctMpnV9JB8MUA==
Received: from VE1EUR01FT009.eop-EUR01.prod.protection.outlook.com
 (2a01:111:e400:7e19::4a) by
 VE1EUR01HT176.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::190)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21; Mon, 28 Sep
 2020 14:11:50 +0000
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 (2a01:111:e400:7e19::4d) by VE1EUR01FT009.mail.protection.outlook.com
 (2a01:111:e400:7e19::141) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21 via Frontend
 Transport; Mon, 28 Sep 2020 14:11:50 +0000
X-IncomingTopHeaderMarker: OriginalChecksum:A77C7F45372AD67D8069B3D553B2686D0A216D8C38C3A9DED6366507AB7CF8D5;
 UpperCasedChecksum:168AF5A12B725D1D08457E22B543E1C80A12265EEE00D7DB6CC0DDB8FC66E4AB;
 SizeAsReceived:7571; Count:47
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3412.028; Mon, 28 Sep 2020
 14:11:50 +0000
From: Arthur Miller <arthur.miller@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 <87d026uhp7.fsf@HIDDEN>
Date: Mon, 28 Sep 2020 16:11:48 +0200
In-Reply-To: <87d026uhp7.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon,
 28 Sep 2020 15:57:56 +0200")
Message-ID: <VI1PR06MB4526DD1AE019C53490CB45B796350@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Content-Type: text/plain
X-ClientProxiedBy: AM6PR10CA0041.EURPRD10.PROD.OUTLOOK.COM
 (2603:10a6:209:80::18) To VI1PR06MB4526.eurprd06.prod.outlook.com
 (2603:10a6:803:ac::17)
X-Microsoft-Original-Message-ID: <87k0we0z4r.fsf@HIDDEN>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from pascal.homepc (90.230.29.56) by
 AM6PR10CA0041.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::18) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3412.22 via Frontend Transport; Mon, 28 Sep 2020 14:11:49 +0000
X-Microsoft-Original-Message-ID: <87k0we0z4r.fsf@HIDDEN>
X-TMN: [XDY7Am8AgYKPpVMM3Z2Ryi11XEoIdf+H]
X-MS-PublicTrafficType: Email
X-IncomingHeaderCount: 47
X-EOPAttributedMessage: 0
X-MS-Office365-Filtering-Correlation-Id: 51eb013a-c936-436c-a83a-08d863b87139
X-MS-TrafficTypeDiagnostic: VE1EUR01HT176:
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: R1zQ/CpCQsDPAvrvvcDPy7d8sQwL4lBuKXdYwS+2XvTexRGioxoIGA//V6FpQPMYx+DzYAxnlNrKm3D5rczDIM/du7dx0m1uMXA+qzE+5KGK+I2+hAnQiMQqK7Q/F3a2dnnsvEr2CTESiQBe7oHmRBKkFikKBfXsfdbD+Dm42m26cKcliUsoD3kbq2aoi3lFtvXAge/bo9kTVEmqGGFllA==
X-MS-Exchange-AntiSpam-MessageData: GGXJoKXoLK8mFhRj8rfQZYFMU5jMX7aJJrU5Wdy9xag6ZL/vW0rPjVZ3Tuc/K1ukULuy6ToBKAuK5511GNfXy3OKgx8jdCPsUY+JtaD9c95dTUIlGbl8joilY2DiH5DzVE4XxVomIlhiaLq788orJA==
X-OriginatorOrg: live.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 51eb013a-c936-436c-a83a-08d863b87139
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2020 14:11:50.0879 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT009.eop-EUR01.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT176
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 43672
Cc: 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Arthur Miller <arthur.miller@HIDDEN> writes:
>
>> When calling
>>
>>       (select-frame-set-input-focus some-frame)
>>
>> the frame is raised, but does not recieve the focus.
>
>
> [...]
>
>> (define-minor-mode pm-minor-mode
>>   :keymap (let ((map (make-sparse-keymap)))
>>             map))
>
> This isn't valid (lacks a doc string),
Ah, ok; It was just a quickie to let me close menu without M-x
delete-frame when I test.

> but after fixing it, I'm unable
> to reproduce the bug?  I think?  At least my frame lost focus, but the
> other frame never really appeared in any visible sense. Can
it be it just ended somewhere outside the screen?

Did you run via the "test" function (pm-test)? It should take pixel
coordinate of the point and try to place the frame at those coords.

> It did something really weird to my Gnome Shell desktop -- even after
> closing the Emacs that opened the frames, Gnome Shell insists that
> they're there, but not responding.
That sounds really weird. The code does notthing special; it just
creates a child frame, and tries to display a buffer in it.

On my machine (I use Compiz as WM), it displays properly, either at
point or cursor. It is just that focus does not get transfered as
advertised (as I understand it).

Thanks for looking at it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at 43672 <at> debbugs.gnu.org:


Received: (at 43672) by debbugs.gnu.org; 28 Sep 2020 13:58:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 28 09:58:08 2020
Received: from localhost ([127.0.0.1]:53648 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kMtfM-0004gT-CI
	for submit <at> debbugs.gnu.org; Mon, 28 Sep 2020 09:58:08 -0400
Received: from quimby.gnus.org ([95.216.78.240]:50280)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kMtfK-0004fy-HD
 for 43672 <at> debbugs.gnu.org; Mon, 28 Sep 2020 09:58:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=tXvvj6kNGs/Egx0d1xeUDO53e7i1Em3BblwPMeRHiNE=; b=OqrOlD1GiHxbm2XHrZNrMCswLE
 lyYBESWZ0CG7h1yzLmPfUgceifvU0gNbbdv6DXXa0/3WOpoPWTtWlLTB9v1+Ni5dcQzcHMoA57Nkt
 7/HcPhgkRR9echrB7q8vynLIK+UFYHlPnHxmEPlB0MxuP+sofoxKyt2CPeij0gNnIPsc=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kMtfB-0007lE-JD; Mon, 28 Sep 2020 15:58:00 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Arthur Miller <arthur.miller@HIDDEN>
Subject: Re: bug#43672: 28.0.50; select-frame-set-input-focus does not set
 focus first time called
References: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXv4dLPtquldoSS
 WmliESU0Hiz///8M5QULAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QJHA03OggNk7cAAAGvSURBVDjL
 ddTBcoMgEABQNmnvrpp7Au3dsHBvBD6gKv//K11AI2ntzjiT8MIusBIhqsDnJ0BxHDW0eAQnREnN
 QdZOkjoEUFqZ6wEgSUnDEWhJ5gC4NDp955Qd50N5KwBAI3Za8oxLjGRjnMpyoSONVstrhhTfZQZ2
 ylEYVVMBZJAq+KArGPIM6EbrfaAKrnkG9GQXHx1xjc8CTQb84IWESOlIVoACxhj+kqGkmiDX4HN1
 Mc6kxTbjW5QZUo2W4f6EIQO0RKOylGqvqZoCSiknlcrwXkFLUunUpx1yKuj559wMxOYJc5NWZZzS
 JE3p6/t+iOAdkSE/1BAHEGfP4o0fM5xX4C32voR7gYjC8GB6fHm/dugPYf6d6uafNc4r5OIwL2GD
 Ew9Gfh4lk/dbKuDBsMF5yTDHBTOk+NpAb/BRIO/8slBouDeWlwv9KzjRJRj45angtNBDQKrO7azh
 zadXPvV34kZVxS/O8vF3ZQa+wCQK3MS23pyqVWk7bZzSFQazgxCpkWAH3KG6shAwgUg7dPf69sfy
 K4ZHfcUZysXuvXsZ52VNf/5Q1tDin+Bu/ABqYZPDt0KCiAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy
 MC0wOS0yOFQxMzo1NTo1OCswMDowMLlEXhoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDktMjhU
 MTM6NTU6NTgrMDA6MDDIGeamAAAAAElFTkSuQmCC
X-Now-Playing: Cat Power's _The Covers Record_: "Kingsport Town"
Date: Mon, 28 Sep 2020 15:57:56 +0200
In-Reply-To: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
 (Arthur Miller's message of "Mon, 28 Sep 2020 15:34:33 +0200")
Message-ID: <87d026uhp7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Arthur Miller <arthur.miller@HIDDEN> writes: > When calling
 > > (select-frame-set-input-focus some-frame) > > the frame is raised, but
 does not recieve the focus. [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43672
Cc: 43672 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Arthur Miller <arthur.miller@HIDDEN> writes:

> When calling
>
>       (select-frame-set-input-focus some-frame)
>
> the frame is raised, but does not recieve the focus.


[...]

> (define-minor-mode pm-minor-mode
>   :keymap (let ((map (make-sparse-keymap)))
>             map))

This isn't valid (lacks a doc string), but after fixing it, I'm unable
to reproduce the bug?  I think?  At least my frame lost focus, but the
other frame never really appeared in any visible sense.

It did something really weird to my Gnome Shell desktop -- even after
closing the Emacs that opened the frames, Gnome Shell insists that
they're there, but not responding.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Sep 2020 13:49:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 28 09:49:47 2020
Received: from localhost ([127.0.0.1]:51964 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kMtXH-00044h-ED
	for submit <at> debbugs.gnu.org; Mon, 28 Sep 2020 09:49:47 -0400
Received: from lists.gnu.org ([209.51.188.17]:34270)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arthur.miller@HIDDEN>) id 1kMtXF-00044Z-Vf
 for submit <at> debbugs.gnu.org; Mon, 28 Sep 2020 09:49:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40440)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arthur.miller@HIDDEN>)
 id 1kMtXD-000780-Sa
 for bug-gnu-emacs@HIDDEN; Mon, 28 Sep 2020 09:49:44 -0400
Received: from mail-oln040092064082.outbound.protection.outlook.com
 ([40.92.64.82]:14727 helo=EUR01-DB5-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arthur.miller@HIDDEN>)
 id 1kMtX9-0006d3-IQ
 for bug-gnu-emacs@HIDDEN; Mon, 28 Sep 2020 09:49:42 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Dk3Zl/Jh9a7EY9FZNfOlF27fJYMeMFVpIwgZMiiqg1/Yyz9ai4z4EMAZwB5lNro+cCySN2zqpNkjaeYzcsRL5NklC/iYXnLpSbMj7T2i/9dPvZfHtjs1kx5lwgUZsSF99Ze7av1VgZe/55L4ZvxxPTCD1voav9/jzfH7cWMc4qZdAvqtndg+lbotscyZ/+zHC1b7a8yUYcAqBPcBTkKkJRrUGE5DEp/Fm17slF67wuG1KYre2BoZMWEi13dur0aQACPf5my6gkxex+zv8MbGUcQ5MlzZV3+1KSJutC8F4cBWakyz+huQdIFrDjsIbtsqprGkLKtpNER5EDdqfH4XRw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=QfNuOmwpxqwWqBG55gnSAF6byqlEZ373U4jT1CX+fFQ=;
 b=J27Qt8HJMj9GIIIhuPRNftv+ddjihBpnl9BGQtQZYxFD94D/omuQVjQ/iZL8tm++AWqfxG++oyRkgru8PlHgptaU2TC5D4I7t2YMv396rqg9uQMP+inM1teu28W8VroFpvZpU0jRekwvR5PLwUmxKlQBlS0CxSo9FuLhRoeSRUR9fHSG4FOzNHlBB1DE/riVbL7Jna2KO909T+hxnkpgSwYHhigYfBUYZvE6kkR3HJoMFwtkydv9bvBfdQDsuSI/Ztxqx6m6/ismL9avOfTNdHguWBk6BuEGgxWByVixVYEMjf/5Vfi/4utKFK+l60Q2+dQc7c/vOhZySi5fAuXaMg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; 
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=QfNuOmwpxqwWqBG55gnSAF6byqlEZ373U4jT1CX+fFQ=;
 b=OTbplrMATfPWGnfMn545+K5UBNhLwglApykS2oPHD2N7EuKpMwdEU+uBDvdsGVo2NglMj/3qYdeeBbcI8NjBj+iuJWzQPcmIHcjWBS5ODEdcok+XtKVEBPr71LYQBgEAIoyJhqtVF7YkUKpvEYa4QVX7eN4Hio6nGmcQYpDOg2tRmHnsiy2egE3X9aAmFRB4qbiyCtKcNvvxc+oO3y+EQU0wtR83lO4h+Fcx2oKa/tohDfNb5b5PD8MBGuqrqTjO1wrvtuL/gvad5y/cKvt8NbhaPPZW7jOTtvY+qecS6jtIHFgwSQuX708HVnkOEmvP4oULUqGK88Pl2XvVFtnnfw==
Received: from DB5EUR01FT006.eop-EUR01.prod.protection.outlook.com
 (2a01:111:e400:7e1a::53) by
 DB5EUR01HT132.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e1a::368)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21; Mon, 28 Sep
 2020 13:34:34 +0000
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 (2a01:111:e400:7e1a::4e) by DB5EUR01FT006.mail.protection.outlook.com
 (2a01:111:e400:7e1a::134) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21 via Frontend
 Transport; Mon, 28 Sep 2020 13:34:34 +0000
X-IncomingTopHeaderMarker: OriginalChecksum:A9DBC429C7DD3FB5ABFC48047951967DEE50B348B59075A4D774E2EB4A5CD319;
 UpperCasedChecksum:CF410FB85F367EDEFB040615AE791158D02FEFC07884EA520A5DB8F0AB36EE61;
 SizeAsReceived:7297; Count:44
Received: from VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com
 ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3412.028; Mon, 28 Sep 2020
 13:34:34 +0000
From: Arthur Miller <arthur.miller@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; select-frame-set-input-focus does not set focus first time
 called
Date: Mon, 28 Sep 2020 15:34:33 +0200
Message-ID: <VI1PR06MB452601260B80B553B62283BC96350@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Content-Type: multipart/mixed; boundary="=-=-="
X-ClientProxiedBy: AM5PR1001CA0008.EURPRD10.PROD.OUTLOOK.COM
 (2603:10a6:206:2::21) To VI1PR06MB4526.eurprd06.prod.outlook.com
 (2603:10a6:803:ac::17)
X-Microsoft-Original-Message-ID: <87o8lq10uu.fsf@HIDDEN>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from pascal.homepc (90.230.29.56) by
 AM5PR1001CA0008.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:2::21) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20 via Frontend
 Transport; Mon, 28 Sep 2020 13:34:34 +0000
X-Microsoft-Original-Message-ID: <87o8lq10uu.fsf@HIDDEN>
X-TMN: [ixC7uLYAYnFjIVOdHT6lPft26/AiCakM]
X-MS-PublicTrafficType: Email
X-IncomingHeaderCount: 44
X-EOPAttributedMessage: 0
X-MS-Office365-Filtering-Correlation-Id: 7a53fdd8-adea-4714-5277-08d863b33cd4
X-MS-TrafficTypeDiagnostic: DB5EUR01HT132:
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: GiDwdHE8uEdpe5b60+V81KJ7oix7JirpxPXNangbkET5kj8XGNbg2PWu4tL65UhnFkgU6cTNvjEeQcYmoPGIPGMzduR/SrhiljWYr81gWSHTSk/ziJuauH4l5ACeN2iF84lgrC+onAKl1rVvrTiw2ln1aZT9Yy+sCU4THx4nMNQy5LaxOSWwu0qeTsPKTvNvELlMd3RAx6rDrpregWOwNw==
X-MS-Exchange-AntiSpam-MessageData: YpQt6TRLUTEiNAcHIGFmOpHRGcFvzxTGbO7Hj8uTFLp/3slMMHYWZg7+WJYHfoYLPFk9FRPV2uKbSLwg2cX7eorZdJVImAlP8TJkJE6LG1dfkrIF9H0nUPqbb+n7zBGTWFyvYYcP/RbFTIa2B0/kdA==
X-OriginatorOrg: live.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7a53fdd8-adea-4714-5277-08d863b33cd4
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2020 13:34:34.8346 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource: DB5EUR01FT006.eop-EUR01.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT132
Received-SPF: pass client-ip=40.92.64.82; envelope-from=arthur.miller@HIDDEN;
 helo=EUR01-DB5-obe.outbound.protection.outlook.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/28 09:49:37
X-ACL-Warn: Detected OS   = Windows NT kernel [generic] [fuzzy]
X-Spam_score_int: -33
X-Spam_score: -3.4
X-Spam_bar: ---
X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.614,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--=-=-=
Content-Type: text/plain


When calling

      (select-frame-set-input-focus some-frame)

the frame is raised, but does not recieve the focus. I have to call 
twice to 'select-frame-set-input-focus' for the frame to get
focused. Docs says "focused if possible", so I am not sure if it some
bug or/and how much does it depend on my window manager used; but
calling it twice consecutively works.

I have attached an example code. To reproduce, emacs -Q, an eval
attached code.

If I missunderstand docs, or am calling it wrongly, dissregard the
rapport plz :-).


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=poor-man-menu.el
Content-Description: test example

;;; poor-man-menu.el ---                                 -*- lexical-binding: t; -*-

(defun pm-test ()
  (interactive)
  (let ((test (get-buffer "testmenu")))
    (when (not test)
      (with-current-buffer (get-buffer-create "testmenu")
        (insert "one")
        (newline)
        (insert "two")
        (newline)
        (insert "three")
        (newline)
        (insert "four"))))
  (pm-show-at-point "testmenu"))

(define-minor-mode pm-minor-mode
  :keymap (let ((map (make-sparse-keymap)))
            map))

(defun pm-quit ()
  (interactive)
  (let ((b (window-buffer)))
        (when b (kill-buffer b)))
  (delete-frame (selected-frame)))

(defun pm-show-at-point (menuname)
  (let ((position (pos-visible-in-window-p nil nil t)))
      (pm-create-menu menuname (nth 0 position) (nth 1 position))))

(defun pm-show-at-cursor (menuname)
  (let ((cursor-pos (mouse-pixel-position)))
        (pm-create-menu menuname (cadr cursor-pos) (cddr cursor-pos))))
    
(defun pm-create-menu (menuname x y)

  (when (not (get-buffer menuname))
    (pm-load-menu menuname))
  
  (with-current-buffer (get-buffer menuname)
    (pm-minor-mode)
    (define-key pm-minor-mode-map (kbd "C-g")   'pm-quit)

    (setq tab-line-format nil)
    (setq mode-line-format nil)
    
    (let ((parent (selected-frame))
          (child-frame (make-frame   '((visible . 0)
                                       (undecorated . 0)
                                       (keep-ratio . t)
                                       (menu-bar-lines . 0)
                                       (tool-bar-lines . 0)
                                       (left-fringe . 0)
                                       (right-fringe . 0)
                                       (line-spacing . 0)
                                       (unsplittable . t)
                                       (minibuffer . nil)
                                       (no-other-frame . t)
                                       (drag-internal-border . t)
                                       (inhibit-double-buffering . t)
                                       (desktop-dont-save . t)))))
      
      (set-frame-parameter child-frame 'parent-frame parent)
      (fit-frame-to-buffer child-frame)
      (set-frame-position child-frame x y)
      ;;(raise-frame child-frame)
      ;; needs two calls to get raised AND focused
      (select-frame-set-input-focus child-frame)
      (select-frame-set-input-focus child-frame))))

(provide 'poor-man-menu)

--=-=-=
Content-Type: text/plain



In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.17.3)
 of 2020-09-27 built on pascal
Repository revision: dc0cf16c7a60f36aafcf9b56513a855cefa7e1ad
Repository branch: feature/native-comp
Windowing system distributor 'The X.Org Foundation', version 11.0.12009000
System Description: Arch Linux

Configured using:
 'configure --with-gnutls --without-gconf --with-rsvg --with-x
 --with-xwidgets --without-toolkit-scroll-bars --without-xaw3d
 --without-gsettings --with-mailutils --with-nativecomp 'CFLAGS=-O3
 -mtune=native -march=native -fomit-frame-pointer''

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL
GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB GTK3 X11 XDBE XIM
MODULES NATIVE_COMP THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2

Important settings:
  value of $LANG: sv_SE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: ELisp/l

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search seq byte-opt
gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils edmacro kmacro time-date subr-x
cl-loaddefs cl-lib pure-menu easy-mmode tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face pcase macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads xwidget-internal dbusbind
inotify lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 65534 9142)
 (symbols 48 7061 0)
 (strings 32 19304 1280)
 (string-bytes 1 699011)
 (vectors 16 12611)
 (vector-slots 8 276483 9931)
 (floats 8 26 105)
 (intervals 56 610 517)
 (buffers 992 13))

--=-=-=--




Acknowledgement sent to Arthur Miller <arthur.miller@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#43672; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 30 Sep 2020 09:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.