From unknown Mon Aug 18 11:16:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21864 <21864@debbugs.gnu.org> To: bug#21864 <21864@debbugs.gnu.org> Subject: Status: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified Reply-To: bug#21864 <21864@debbugs.gnu.org> Date: Mon, 18 Aug 2025 18:16:58 +0000 retitle 21864 25.0.50; `raise-frame' steals focus some time after being cal= led if the frame was iconified reassign 21864 emacs submitter 21864 Artur Malabarba severity 21864 normal tag 21864 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 13:00:26 2015 Received: (at submit) by debbugs.gnu.org; 8 Nov 2015 18:00:26 +0000 Received: from localhost ([127.0.0.1]:57823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZvUGP-0001Ve-NG for submit@debbugs.gnu.org; Sun, 08 Nov 2015 13:00:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51548) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZvUG5-0001UP-HB for submit@debbugs.gnu.org; Sun, 08 Nov 2015 13:00:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvUG4-0002uA-5k for submit@debbugs.gnu.org; Sun, 08 Nov 2015 13:00:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvUG4-0002tz-3Z for submit@debbugs.gnu.org; Sun, 08 Nov 2015 13:00:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvUG3-0001UL-AZ for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 13:00:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvUG0-0002pj-5w for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 13:00:03 -0500 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:34889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvUFz-0002pe-W7 for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2015 13:00:00 -0500 Received: by wmdw130 with SMTP id w130so13326533wmd.0 for ; Sun, 08 Nov 2015 09:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=3d3yGmAlfK15SIekEjcI6Jx9PdZzXmdOgiLJrFg0Ve0=; b=gV1+bpdDgxv8OiXEYeCcWzlXUduK4BDCUbTxW+vKHC0GpXbNJcjw2puFOHJjlpoN42 WZe7fzkdLZ8IrC8zp7Ll1qSJjOJHc41RUvt6ueSXVwA4YhxFHiTkOJJdvFUfvzwjv8m3 qax1/KXDqr9wlqLL920qan5h4pH3IQjLw6cXiJK5+VMfor+erCIdUtPF3vqda5lZmjoO BaG1Yxid5GISN7vMw8XQCB/uDzA/gJcVwHZqaZwGBIrgbCmvwBrE4IPCxCKWMGq9cMxw 5ghkNa9z/pXTTL3aitM8FBNvWx2AlQDVV7ZJw5LRW7skUxXKF5CIGGwYqaszMjZkde4y f4uw== X-Received: by 10.28.156.75 with SMTP id f72mr5065082wme.91.1447005599437; Sun, 08 Nov 2015 09:59:59 -0800 (PST) Received: from Gandalf-Linux.gmail.com (host-92-12-87-116.as43234.net. [92.12.87.116]) by smtp.gmail.com with ESMTPSA id hu2sm11020745wjb.21.2015.11.08.09.59.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Nov 2015 09:59:58 -0800 (PST) From: Artur Malabarba To: bug-gnu-emacs@gnu.org Subject: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified Date: Sun, 08 Nov 2015 18:33:34 +0000 Message-ID: <87a8qofhbw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 1. On a graphical session, do the following: (setq other-frame (make-frame)) 2. Iconify (minimize) the newly created frame. 3. Run the following: (let ((cur (selected-frame))) (raise-frame other-frame) (select-frame cur)) Result: Even though that snippet ends with `(select-frame cur)', focus is left on `other-frame'. For comparison, try something else: 1. (setq other-frame (make-frame)) 2. Switch back to the original frame, and make sure it is covering the newly created frame. 3. Run the following: (let ((cur (selected-frame))) (raise-frame other-frame) (select-frame cur)) Result: other-frame is correctly raised while focus is correctly left on the original frame. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 13:25:08 2015 Received: (at 21864) by debbugs.gnu.org; 8 Nov 2015 18:25:08 +0000 Received: from localhost ([127.0.0.1]:57832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZvUeK-00027n-1A for submit@debbugs.gnu.org; Sun, 08 Nov 2015 13:25:08 -0500 Received: from mout.gmx.net ([212.227.15.18]:52654) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZvUdz-00026z-4J for 21864@debbugs.gnu.org; Sun, 08 Nov 2015 13:25:05 -0500 Received: from [192.168.1.100] ([213.162.68.71]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MO77c-1Zpyrx2wTs-005YyU; Sun, 08 Nov 2015 19:24:45 +0100 Message-ID: <563F9361.9070503@gmx.at> Date: Sun, 08 Nov 2015 19:24:33 +0100 From: martin rudalics MIME-Version: 1.0 To: Artur Malabarba , 21864@debbugs.gnu.org Subject: Re: bug#21864: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified References: <87a8qofhbw.fsf@gmail.com> In-Reply-To: <87a8qofhbw.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:5NXfD78RwP1fAEmHv2bwX2cuSRTXokwdpZmHVaj2VR4GY5v5Xky M1sB9ksvZvjXHbqCZB1siJqeeRqfdymWSV8UJdMJpi08MPGOGMY6tHKx3FZ+6KcSbkAAZN2 27AWsBjtJnqZjRf1RR0UqfEQfGiKlrpQ6AU2fz/UwtvH/k/QDv/F2leU9xDnPElK7IcIy5s KTGgglNXDqZ/E1tni3yoQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:0LG44guQfVQ=:fCrAaCelF9A647J95ewW6P I+SRFkwXjRTksE51z6DUw9Giv+/hrOdjd3pJDZW3KozLdNNNJ4GjPFOa2Hc4hRUq3GtqN7wox ntvczYddnm+Q7h+RLj+GvVuJIPbB75qiPYvCwn4/Aqq1hGgdck1ukI3+lNSD1OFA72yxR/HdK eLA4Bwz6s9QZ08qJaLf9qtqK/SZeuYDgSINTd2ySp8TsMe/tLg8XZDmcohB6Jmm0OlFvMD493 PFsdXQiy8D+GlRqcG2oJnfOZZGQK8y+CzNbR8QaW22G47CN3Q/R6z2gsW79wxaMjCIPhnHU3q J6W5qGDH1Q0jF0HZYQD2k/9JVM2Zn28kyqOyR9lr5yWaFHKLAxmusO1+muvjzaaWqKR3ZFCAX iClq3BT8N9Rx7osV2fEmAXlwEAl37ukjPNHgUNaETi1rBNgc3wlIKfEdDnUdAf6ijbWVPu2j3 bErylQZogqhRLk8keqevX2yc/Y9+WeP06gJrDSfz2q6ZWKH/xCqsJEn3tSfPKejNXzfuiqkNh lrsYTIcUUwe1cGar6DFg9YkOtCw8D2IJk1Jm8oXSc7TgRWBlMafXWXF4YF7fU5w8O5nnd/IBT AppPeRQm+F/nF0SbEVz0AUNzjPtorJ9YoQ94NUN0q+CtLD0xYQmSwShulZ+KbG7E2qRCfW711 LP5k7ugAumx2p4UCNOXyFyzcpTWRme2uIsMmS0mlwIZBsCF9Fz2eKLrc+Peu5PFuvw8biAKgB v2gTE4rHXU7qatRglIKGZxjlIADvmp5tF5zsMaFnObFBPQN3nPYwzXxOOKe/IO/IwQA4NDDmx R+0AecG X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: 21864 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) > (let ((cur (selected-frame))) > (raise-frame other-frame) > (select-frame cur)) > > Result: Even though that snippet ends with `(select-frame cur)', focus= > is left on `other-frame'. =E2=80=98raise-frame=E2=80=99 requires an interaction with the window man= ager. If the latter decides that raising a minimized frame will give focus to that frame that's it. You might want to look into bug#745 where you can find many references to window manager behaviors and older discussions on emacs-devel. martin From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 18:49:30 2015 Received: (at 21864) by debbugs.gnu.org; 8 Nov 2015 23:49:30 +0000 Received: from localhost ([127.0.0.1]:57951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZvZiD-0001Ey-MZ for submit@debbugs.gnu.org; Sun, 08 Nov 2015 18:49:29 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:33652) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZvZiB-0001Ep-GJ for 21864@debbugs.gnu.org; Sun, 08 Nov 2015 18:49:28 -0500 Received: by lbbkw15 with SMTP id kw15so81928112lbb.0 for <21864@debbugs.gnu.org>; Sun, 08 Nov 2015 15:49:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=HKkbichw/SKulyjKtTmLCmOS12Kx/CkRDn4/r7qsEOg=; b=Ez57vL48/9uLX5EDiAUbyulhZuURluA0MZ3KYYi3ZHasmphiF9tP/xkRfRD/lqD1av GV40iQQlzN6nmLk6tAvhmJbzbkMnwSMV+Hhv3QYMX7sdwuF1W2gxdUv3cuigzh2Vg9h+ 2hL0w6XyTBjqh9jjY2AMER/2KE2KOm2HIcca7u2k9TF2JTHEifXLdGz+fv1D8cRiyhBG GWEaThw97T7sB6oCUfe/p2YNRopAgPac95ConfB6hFpVl8IQi/yeRbQPeCTgGXywKqHi w/7wN5pIYFrLm3yzm02gYXIquVoJJlkO/r0ig3HCACKnO3o8vhyRND1swgm92t6ev9fc TTxQ== MIME-Version: 1.0 X-Received: by 10.112.62.232 with SMTP id b8mr12252545lbs.27.1447026566365; Sun, 08 Nov 2015 15:49:26 -0800 (PST) Received: by 10.112.63.70 with HTTP; Sun, 8 Nov 2015 15:49:25 -0800 (PST) Received: by 10.112.63.70 with HTTP; Sun, 8 Nov 2015 15:49:25 -0800 (PST) In-Reply-To: <563F9361.9070503@gmx.at> References: <87a8qofhbw.fsf@gmail.com> <563F9361.9070503@gmx.at> Date: Sun, 8 Nov 2015 23:49:25 +0000 X-Google-Sender-Auth: fBtXQDXiKk8poEnGQ5g1M1haeFA Message-ID: Subject: Re: bug#21864: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified From: Artur Malabarba To: martin rudalics Content-Type: multipart/alternative; boundary=001a11c3c402780a5805241020a7 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21864 Cc: 21864@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: bruce.connor.am@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11c3c402780a5805241020a7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 8 Nov 2015 6:24 pm, "martin rudalics" wrote: > > > (let ((cur (selected-frame))) > > (raise-frame other-frame) > > (select-frame cur)) > > > > Result: Even though that snippet ends with `(select-frame cur)', focus > > is left on `other-frame'. > > =E2=80=98raise-frame=E2=80=99 requires an interaction with the window man= ager. If the > latter decides that raising a minimized frame will give focus to that > frame that's it. > > You might want to look into bug#745 where you can find many references > to window manager behaviors and older discussions on emacs-devel. Yeah, that makes sense. Thanks for the reference. I guess we can close this then. --001a11c3c402780a5805241020a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On 8 Nov 2015 6:24 pm, "martin rudalics" <rudalics@gmx.at> wrote:
>
> >=C2=A0 =C2=A0 =C2=A0 (let ((cur (selected-frame)))
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 (raise-frame other-frame)
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 (select-frame cur))
> >
> > Result: Even though that snippet ends with `(select-frame cur)= 9;, focus
> > is left on `other-frame'.
>
> =E2=80=98raise-frame=E2=80=99 requires an interaction with the window = manager.=C2=A0 If the
> latter decides that raising a minimized frame will give focus to that<= br> > frame that's it.
>
> You might want to look into bug#745 where you can find many references=
> to window manager behaviors and older discussions on emacs-devel.

Yeah, that makes sense. Thanks for the reference.
I guess we can close this then.

--001a11c3c402780a5805241020a7-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 09 13:12:34 2015 Received: (at control) by debbugs.gnu.org; 9 Nov 2015 18:12:34 +0000 Received: from localhost ([127.0.0.1]:59436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zvqvi-0005az-De for submit@debbugs.gnu.org; Mon, 09 Nov 2015 13:12:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38491) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zvqvg-0005aq-Gr for control@debbugs.gnu.org; Mon, 09 Nov 2015 13:12:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zvqvf-000780-M7 for control@debbugs.gnu.org; Mon, 09 Nov 2015 13:12:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zvqvf-00077h-Gj for control@debbugs.gnu.org; Mon, 09 Nov 2015 13:12:31 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1Zvqvf-0005yE-1y for control@debbugs.gnu.org; Mon, 09 Nov 2015 13:12:31 -0500 Subject: control message for bug 21864 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Mon, 09 Nov 2015 13:12:31 -0500 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) tag 21864 notabug close 21864 From unknown Mon Aug 18 11:16:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 Dec 2015 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator