From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.bugs Subject: bug#43672: 28.0.50; select-frame-set-input-focus does not set focus first time called Date: Sun, 18 Oct 2020 16:10:44 +0200 Message-ID: References: <87d026uhp7.fsf@gnus.org> <87y2kut2cp.fsf@gnus.org> <87a6x8elva.fsf@gnus.org> <7b7b537b-0092-446c-4197-465e75595248@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10554"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , "43672@debbugs.gnu.org" <43672@debbugs.gnu.org> To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 18 16:11:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kU9Ox-0002ex-NT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 16:11:11 +0200 Original-Received: from localhost ([::1]:47380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kU9Ow-0001Fb-4z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 10:11:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kU9Oo-0001FK-Jo for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2020 10:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kU9Oo-0000MX-Ar for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2020 10:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kU9Oo-00053d-6t for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2020 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Oct 2020 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43672 X-GNU-PR-Package: emacs Original-Received: via spool by 43672-submit@debbugs.gnu.org id=B43672.160303025619429 (code B ref 43672); Sun, 18 Oct 2020 14:11:02 +0000 Original-Received: (at 43672) by debbugs.gnu.org; 18 Oct 2020 14:10:56 +0000 Original-Received: from localhost ([127.0.0.1]:38789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kU9Oh-00053I-NP for submit@debbugs.gnu.org; Sun, 18 Oct 2020 10:10:56 -0400 Original-Received: from mail-am7eur06olkn2048.outbound.protection.outlook.com ([40.92.16.48]:28896 helo=EUR06-AM7-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kU9Oe-000533-Vm for 43672@debbugs.gnu.org; Sun, 18 Oct 2020 10:10:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kFWWa14sBLKq/zRIZRJ63S/PYx0HGG8g5fr2mGFJskOt3SsI8aFpN2mbw/UJXpx+S8xJaaelnzrweYyaMhChCj2xWxCnmbOpi8qMa3MLDq4lRC3kyZ5Gip5UE9xBsYw+t5CfpfZgiMXLy8uXJmRkeT/eERKYuer2T+mE9Hbrvv4BTXL4FbNGlM9fQ583oEvIHK1MCXsYUj9lXrzFYkY61enk8LJcTPYNDwPHGNKfiJU+gfGkQp3OgE8baSFdRkmcHD4rTYrJB7nIXy5DFS4y94R/0zLP0M9qd0uwE14aTOF1sJQyGHsreWaP+2Sl/x/E56bL/8r/5ZCp/B8jyUA7wg== 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=0rX0a0EQ1KXgRV8yT9R/5gnGCmQU+9BaKpTB8jfYZAA=; b=aMeFdCgYbFxu7cypL0pyRN9fxHd+UK3/8i31ni+ZnPwIYhaqmfSnFbqphJPmCrJX0qjWiKb8BYjhLOmP4WyC8R/Pt6DOy8G3zkBX27afE9HngECG0+ceyuTlhP2+No5wrLpj7AwwJT6Au1QE8h+uKD1I91b4flvxeFoe3HegReDRy68U+kG/NrAkMdWDoYYuZv1ReJKA5sc7avAAvNzvGj7K0N7wcIvJNQDWbPW+U4gkLvSXcS91e/n58hgfmyfWTsJkflPhBfJ8CwWcWkHUGP5A60z9WE1EDKgqYOX0K9bryW+J8sjoonVjcqQPwLJSZsQjmdDH9l26ePftS5RELQ== 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=0rX0a0EQ1KXgRV8yT9R/5gnGCmQU+9BaKpTB8jfYZAA=; b=TlBqhTk/ZRQBy+hznjcTOeW5U4SzslI8aBW8X4r8IbTt8HZhtmrZKJyBP38dJFoCOduda/vWj3gYacUujhBlNL3JYy7GLcl+RrHP9+91qd6IL3oQXCQA2IlGTkspw7VY2BU1ABmkHkBR6m70QNyUVNnWovIB2wOgeKsiTuPhZHKZ9vNQ1sZP3DNNu2Xx14NIvofg97F116CfdIPl8ds7/bZ9ms79SjfsSMBZ04+Qc/gpG2S38lqtkYlpFjXRi0HvaVLu+6a71kpRJ32kJDXWRo5NOZKMvGrU0QszSFsAxG8ZshNW38i9N8kOWqmqnbPncpw7OygHHRN/4xHjlHbFeg== Original-Received: from AM7EUR06FT034.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::42) by AM7EUR06HT143.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21; Sun, 18 Oct 2020 14:10:46 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc36::43) by AM7EUR06FT034.mail.protection.outlook.com (2a01:111:e400:fc36::158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21 via Frontend Transport; Sun, 18 Oct 2020 14:10:46 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8B39953621A4F009C417B4943B8489A7E17723181512FFFBF8804F5802712931; UpperCasedChecksum:197AF13A69A50519478136354C59A5E55B0F6B86EA532E28369793CD1ABF398A; SizeAsReceived:8397; Count:46 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::187b:196a:cb2d:adf1]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::187b:196a:cb2d:adf1%5]) with mapi id 15.20.3477.028; Sun, 18 Oct 2020 14:10:46 +0000 In-Reply-To: (martin rudalics's message of "Sun, 18 Oct 2020 09:56:38 +0200") X-TMN: [jYdZ2I2/8SA2GFtz3VjqZeZVELMm0npQ] X-ClientProxiedBy: AM6P195CA0031.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::44) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87lfg3sjyz.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6P195CA0031.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.22 via Frontend Transport; Sun, 18 Oct 2020 14:10:45 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 277d0672-f8ef-476f-027f-08d8736f9b6b X-MS-TrafficTypeDiagnostic: AM7EUR06HT143: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VyB8OdbqS83vGsT648vo0dkxaQ/h53RMytsce6Yvfjhfpk8GmecA0+EZlfocVmM8czGqsn7x/GaS30f5YKS3sPZCZtSYRSLkZh/wK+uf4mr4eesHumH5ndbbwXgLkY8m0tjGuXC5utWtxtJeJPS0XTW+WucOijra2VJS7gaOiWOsvKJl/+cFV3whpk3eDu/W8VA06dPX1d1X41XyPZWSXA== X-MS-Exchange-AntiSpam-MessageData: twfdHaS7kwfsjKHQUfeRXr+TBGkgwzejpJjjAVgq7BnlQfxcehgR2Gh0UbML/3yqheseoF9uGR2SsP759QYQ1hodbZVBa8FxlLQl+FLMAjpopj9rEspCLIoP459IXGlQHcKyKGGfN/QM1u5QN8xS5Q== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 277d0672-f8ef-476f-027f-08d8736f9b6b X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2020 14:10:46.3208 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM7EUR06FT034.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: AM7EUR06HT143 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190886 Archived-At: martin rudalics writes: >> sorry for being a bit late with this. I have tested and it was very >> strange, so I realized I need more time to play with it. >> >> Here is how I got it: >> >> If I pass parent in the frame-params list to make-frame, then all is >> grandy-dandy; > > Even without emacsclient? No I tested emacsclient only; didn't have time to test more I had to go to sleep :-) >> but if I don't then the behaviour is as following: >> >> If parent is set after creation; the frame will be reparented correctly >> and appear at correct place on the screen, but it won't switch focus. > > But it eventually does get focus if you insist by executing > 'select-frame-set-input-focus' twice. Right? Yes. I think I said that previously; tested now and it works when setting focus twice. >> If parent is not set after the creation; the frame will switch focus, >> buf it will of course appear somewhere at the screen (absolute >> coordinates I guess). >> >> I have tested only emacsclient. I hope it helps. > > Earlier you said: > > It works correctly in emacsclient; not correctly when I run Emacs as a > standalone process, either with -Q flag or without. > > So shouldn't you try with a standalone Emacs? Yes I know; but now I get the behaviour as described in the previous mail in client too. I have just tested with emacs -Q too, and I get same behaviour, so at least now it seems to behave same in both client and standalone process. >> I have attached a simplified test file: > > If setting the parent in 'make-frame' works, then we can warn about > reparenting later possibly causing problems with focus transfer. But > if Personally I can live with this, it is not problem for me; I reported mostly because I thought it was rather an odd behaviour. I understand it's a picky thing to debug. > But if > the problematic behavior occurs when you want to pop up an (already > existing but invisible) child menu frame on a different parent and give > the menu focus, I have no idea what to do. So does the latter work for > you? I haven't come to that part yet :-). I just started to write a small eperiment, got into that one and reported, and haven't had time to go back to my experiment.