From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics 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 09:56:38 +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; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9288"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , "43672@debbugs.gnu.org" <43672@debbugs.gnu.org> To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 18 09:57:32 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 1kU3ZL-0002He-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 09:57:31 +0200 Original-Received: from localhost ([::1]:45236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kU3ZJ-0006xy-GI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 03:57:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kU3Ys-0006xs-4N for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2020 03:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kU3Yr-0001G3-QM for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2020 03:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kU3Yr-0005ov-Oo for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2020 03:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Oct 2020 07:57:01 +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.160300781122357 (code B ref 43672); Sun, 18 Oct 2020 07:57:01 +0000 Original-Received: (at 43672) by debbugs.gnu.org; 18 Oct 2020 07:56:51 +0000 Original-Received: from localhost ([127.0.0.1]:36108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kU3Yh-0005oX-4S for submit@debbugs.gnu.org; Sun, 18 Oct 2020 03:56:51 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:58701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kU3Ye-0005oJ-Hy for 43672@debbugs.gnu.org; Sun, 18 Oct 2020 03:56:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1603007800; bh=a9WVMQ6ayFdUWuqiAkkrdIeuOFIPbW5f27Rkg6Ur7l0=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=cYWbN28/JwWtf7WsvuWI8r4r0EmqX6gLA9EeamtiQHf2y3EDPOQAFsXM3moAJOmQI Nc7FdNJXVAikMNryVUgL8cPWzxck2Cb8eqo1dS4xXNp3vPbNj3lCSUE+gbBjI0wthM tDwX4iEv3eYYpwtD9S23247QSjK0tdlwUE2/q2dM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([46.125.249.49]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MqJm5-1k72rb1zJj-00nS7k; Sun, 18 Oct 2020 09:56:40 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:c7JePrxOXpcSt9rbzK/nycAdsXlZ6hLUg+84w50PqSQts4u5pfg gXqkPNUXyPOjMgT7pXc794BMQLnQeFUg2JqsocKYK9jbpPUF7imFTfOrt+zRAyY6lm825tF aDnWrPR9S7JBYoQr3vl8Xe5GaxhoEnXH+ooWKNJtY6a5uLxCziX1AqHAItp+qBsgISTIJSK 4+Btzh7K6HDT4F/xHifJw== X-UI-Out-Filterresults: notjunk:1;V03:K0:MAgGM1CmcUU=:tTLJbg4H+y9L1q1J6cxYBF h7mLEyaL2NjL8Vg9bnbArP6i0ngu3a0/YVFaKaMf8Sds4UPBYDZbSoqaUspSLxcxsb2rhsT+1 Hb1Xj/EI+/b+FUyZyI9wxm3GUs4Wn8OeHZAYt19sz56OalPidMSyFMmXxzT302/do1Bnb/T/5 lm2hCJdMmv1nvFu0dnE5RVlKBEuASRFBqiYlfnh1jr+6P92WAjZJbQ7oB1/9OBcHuT1JPdcaM QV5ghJWCzBzSKKCqtQ9v3/BJGZ/zeenUodEyYJIIjYvx1SVvfdn31T/nVxwunKb1ls1hs2W9g X1lWIg+cWqsnaP3FTz8p9WG6xwOPvsak6G7X7hZgOzWXMXHw6w/q4xwLeGh7OuzqeYLL+O4HB pkNQfjKtxTp1hEmchfxa1wOctKDFM0YkVzShz79yPiMjfdowW2bKo5tCSePpNLNQX7MSXtETi C/sD5kAY358SHFv4dJYR9Zp1E7hei/cpwBkg9i00jOHULlTTtTdix83iW6O+90i1s12QIwklx 6zAlcXqbocRL6sOwx7PcYoMg3TE/GD4M8WVUzBzxbqpBUj44NMwLIUnEYcLflKRej+NmXCM1l ligOP5jcZ+142n8PAR16wmi0GlimFCmpHu9ggQvC0zcbR4kMa2N2veKE0ZYN993xmoJ/RVNe2 OaMs071jsCeCSDus9WMdrVtGDryljC0S5UvX8GhT6tO/adbG2KILINnbW2t4FmA/73oksWhvQ ihydzLacNQ714gnzdyytV03ETa9I63PAmrS05zzzQw4U2Ck8ZET2H90OBSpTOQAaZ//K3s2f 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:190863 Archived-At: > 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? > 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? > 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? > 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 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? martin