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: Wed, 30 Sep 2020 11:31:16 +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="32470"; 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 To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 30 11:32:27 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 1kNYTL-0008Le-E9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 11:32:27 +0200 Original-Received: from localhost ([::1]:37886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNYTK-00031R-FB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 05:32:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNYSx-0002s8-7i for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 05:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNYSw-0002pR-Ta for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 05:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNYSw-0006RV-Qv for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 05:32: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: Wed, 30 Sep 2020 09:32: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.160145829024708 (code B ref 43672); Wed, 30 Sep 2020 09:32:02 +0000 Original-Received: (at 43672) by debbugs.gnu.org; 30 Sep 2020 09:31:30 +0000 Original-Received: from localhost ([127.0.0.1]:58226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNYSQ-0006QR-Ei for submit@debbugs.gnu.org; Wed, 30 Sep 2020 05:31:30 -0400 Original-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 ) id 1kNYSM-0006QB-0Q for 43672@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== Original-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 Original-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 Original-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 In-Reply-To: <7b7b537b-0092-446c-4197-465e75595248@gmx.at> (martin rudalics's message of "Wed, 30 Sep 2020 10:15:38 +0200") 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@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-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-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:189323 Archived-At: martin rudalics 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?