From unknown Fri Jun 20 05:27:53 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#2025 <2025@debbugs.gnu.org> To: bug#2025 <2025@debbugs.gnu.org> Subject: Status: 23.0.60; emacsclient: frame does not get focus on opening Reply-To: bug#2025 <2025@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:27:53 +0000 retitle 2025 23.0.60; emacsclient: frame does not get focus on opening reassign 2025 emacs submitter 2025 Stephen Berman severity 2025 normal tag 2025 notabug wontfix thanks From stephen.berman@gmx.net Sat Jan 24 07:17:07 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Jan 2009 15:17:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0OFH4aR020675 for ; Sat, 24 Jan 2009 07:17:05 -0800 Received: from mx10.gnu.org ([199.232.76.166]:59877) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LQkEM-0002z0-3U for emacs-pretest-bug@gnu.org; Sat, 24 Jan 2009 10:15:30 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LQkFo-0006oq-Eq for emacs-pretest-bug@gnu.org; Sat, 24 Jan 2009 10:17:03 -0500 Received: from mail.gmx.net ([213.165.64.20]:40589) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LQkFn-0006oO-Pi for emacs-pretest-bug@gnu.org; Sat, 24 Jan 2009 10:17:00 -0500 Received: (qmail invoked by alias); 24 Jan 2009 15:16:57 -0000 Received: from i59F57575.versanet.de (EHLO escher.local.home) [89.245.117.117] by mail.gmx.net (mp011) with SMTP; 24 Jan 2009 16:16:57 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/NBBF5nNjNdIckcSP/L/k6TYb3KsOlXDgMkT+Zx3 qEGNbMWECFj/GT Received: by escher.local.home (Postfix, from userid 1000) id 329CA1D115C; Sat, 24 Jan 2009 16:16:52 +0100 (CET) From: Stephen Berman To: emacs-pretest-bug@gnu.org Subject: 23.0.60; emacsclient: frame does not get focus on opening Sender: steve@escher.local.home Date: Sat, 24 Jan 2009 16:16:51 +0100 Message-ID: <87r62s20po.fsf@escher.local.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) If I use server-start, then frames opened by `emacsclient -c' do not automatically get desktop focus: emacs -Q -f server-start emacsclient -c => The frame that appears does not have desktop focus (rather, the xterm window still has focus). This contrasts with using --daemon: emacs -Q --daemon emacsclient -c => The frame that appears has desktop focus I think the server-start case is a user interface bug; the frame should get focus as it does with --daemon. In GNU Emacs 23.0.60.30 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-01-21 on escher Windowing system distributor `The X.Org Foundation', version 11.0.10502000 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 00:48:06 2011 Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 04:48:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBJOn-0005Nj-7R for submit@debbugs.gnu.org; Wed, 05 Oct 2011 00:48:05 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBJOl-0005Nb-E2 for 2025@debbugs.gnu.org; Wed, 05 Oct 2011 00:48:03 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBJOi-00007O-Pj; Wed, 05 Oct 2011 00:48:00 -0400 From: Glenn Morris To: Stephen Berman Subject: Re: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening References: <87r62s20po.fsf@escher.local.home> X-Spook: FTS2000 Aladdin ASDIC fissionable eternity server BROMURE X-Ran: $'kXVtyS?i;HPCo=Kgu7__o>0uH$]"ZAa>J&adwa+StK|"j^L&Q!pehq~F|I=SmU.1esv@ X-Hue: cyan X-Attribution: GM Date: Wed, 05 Oct 2011 00:48:00 -0400 In-Reply-To: <87r62s20po.fsf@escher.local.home> (Stephen Berman's message of "Sat, 24 Jan 2009 16:16:51 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 2025 Cc: 2025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Stephen Berman wrote: > If I use server-start, then frames opened by `emacsclient -c' do not > automatically get desktop focus: > > emacs -Q -f server-start > emacsclient -c > => The frame that appears does not have desktop focus (rather, the xterm > window still has focus). I cannot reproduce this. Do you still see it? (I know nothing about this; doesn't the window manager have some control over it?) From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 04:31:44 2011 Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 08:31:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBMtD-0004RN-Di for submit@debbugs.gnu.org; Wed, 05 Oct 2011 04:31:44 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RBMtB-0004RB-F4 for 2025@debbugs.gnu.org; Wed, 05 Oct 2011 04:31:42 -0400 Received: (qmail invoked by alias); 05 Oct 2011 08:31:33 -0000 Received: from i59F558AF.versanet.de (EHLO escher.home) [89.245.88.175] by mail.gmx.net (mp013) with SMTP; 05 Oct 2011 10:31:33 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/0mPVGyM70QGDSvzhddcOH5H42dEMI3oT2f3HVK0 zwC//CId2fl3Bs Received: by escher.home (Postfix, from userid 1000) id 01C5425F3A; Wed, 5 Oct 2011 10:31:31 +0200 (CEST) From: Stephen Berman To: Glenn Morris Subject: Re: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening References: <87r62s20po.fsf@escher.local.home> Date: Wed, 05 Oct 2011 10:31:31 +0200 In-Reply-To: (Glenn Morris's message of "Wed, 05 Oct 2011 00:48:00 -0400") Message-ID: <87botvltzw.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 2025 Cc: 2025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Wed, 05 Oct 2011 00:48:00 -0400 Glenn Morris wrote: > Stephen Berman wrote: > >> If I use server-start, then frames opened by `emacsclient -c' do not >> automatically get desktop focus: >> >> emacs -Q -f server-start >> emacsclient -c >> => The frame that appears does not have desktop focus (rather, the xterm >> window still has focus). > > I cannot reproduce this. Do you still see it? Yes; however, ... > (I know nothing about this; doesn't the window manager have some control > over it?) Apparently, though I didn't think to test this in my OP. But now I see this problem with KWin (currently KDE 4.7.1, on openSUSE 11.4), starting Emacs either from Konsole or Xterm, but not with IceWM (I don't have Gnome on this system). Also, my recipe was a bit imprecise: either the first line should end with `&' or you have to background the process to invoke emacsclient. Moreover, I see a peculiar difference between Konsole and Xterm on KWin: Invoking `emacs -Q -f server-start' (with or without '&') from Konsole opens a frame which gets focus, but when invoked from Xterm, this frame, too, does not get focus. Whereas with both terminal emulators, frames opened by `emacsclient -c' fail to get focus. Again, this is after initially starting Emacs with server-start; as my OP noted, starting with --daemon, subsequent invocations of `emacsclient -c' do open a frame with focus -- at least when invoked from Konsole: with Xterm there seems to be some kind of race condition, because sometimes the frame gets focus, sometimes it doesn't. Anyway, it looks like this may not be a problem that can be solved by Emacs, so I suppose this bug can be closed. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 13:16:07 2011 Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 17:16:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBV4g-0002I5-NW for submit@debbugs.gnu.org; Wed, 05 Oct 2011 13:16:07 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBV4e-0002Hv-Gw for 2025@debbugs.gnu.org; Wed, 05 Oct 2011 13:16:05 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBV4Y-0005w8-OH; Wed, 05 Oct 2011 13:15:58 -0400 From: Glenn Morris To: Stephen Berman Subject: Re: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening References: <87r62s20po.fsf@escher.local.home> <87botvltzw.fsf@escher.home> X-Spook: nitrate Yukon encryption Leitrim Afghanistan electronic X-Ran: 8,TZ)5jdN=M_Q+qtD=J(Wg6x_1Ha6~-3uJIrnC)hRtisD)i#l!}6Opt@SCl=,bbV1dK{TQ X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 05 Oct 2011 13:15:58 -0400 In-Reply-To: <87botvltzw.fsf@escher.home> (Stephen Berman's message of "Wed, 05 Oct 2011 10:31:31 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 2025 Cc: 2025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Stephen Berman wrote: > Anyway, it looks like this may not be a problem that can be solved by > Emacs, so I suppose this bug can be closed. Maybe someone who knows about these things (window manager hints etc?) could comment... [looks around hopefully for Jan D.] From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 14:55:00 2011 Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 18:55:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBWcN-0004d7-Bq for submit@debbugs.gnu.org; Wed, 05 Oct 2011 14:54:59 -0400 Received: from smtprelay-b21.telenor.se ([195.54.99.212]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBWcL-0004cv-C0 for 2025@debbugs.gnu.org; Wed, 05 Oct 2011 14:54:58 -0400 Received: from iph5.telenor.se (iph5.telenor.se [195.54.127.136]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id 22C73E9555 for <2025@debbugs.gnu.org>; Wed, 5 Oct 2011 20:54:46 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AptVAAmnjE5V4S3JPGdsb2JhbABCiTSca4F3GQEBAQE3MoFTAQEFOB4jEAsOCgklDwIcDAoUBg0BBwEBh3u3VIcpBJkUjB8 X-IronPort-AV: E=Sophos;i="4.68,492,1312149600"; d="scan'208";a="48044818" Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph5.telenor.se with ESMTP; 05 Oct 2011 20:54:46 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id DC9F27FA058; Wed, 5 Oct 2011 20:54:45 +0200 (CEST) Message-ID: <4E8CA7F6.207@swipnet.se> Date: Wed, 05 Oct 2011 20:54:46 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Glenn Morris Subject: Re: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening References: <87r62s20po.fsf@escher.local.home> <87botvltzw.fsf@escher.home> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 2025 Cc: Stephen Berman , 2025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) Glenn Morris skrev 2011-10-05 19:15: > Stephen Berman wrote: > >> Anyway, it looks like this may not be a problem that can be solved by >> Emacs, so I suppose this bug can be closed. > > Maybe someone who knows about these things (window manager hints etc?) > could comment... > > [looks around hopefully for Jan D.] > > A hint is just a hint, the WM may do as it please anyway. It is considered bad behaviour to try to steal input focus when started. It should depend on what policy the user has set, focus-follows-mouse or click-to-focus. If Emacs is started with focus-follows-mouse and the mouse isn't in a frame, I would expect Emacs not to have focus. However, some WMs warp the mouse to newly started applications. For click-to-focus I think the WM just does what it thinks is best. Some WMs have a setting ("give focus to new window") which the user can use to influence this. So to conclude, if Emacs where to try do anything, there are window managers where this would fail anyway. Better if the OP can get KWin to behave. Maybe there is some option for this in KWin. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 17:33:11 2011 Received: (at control) by debbugs.gnu.org; 5 Oct 2011 21:33:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZ5T-0000aO-1V for submit@debbugs.gnu.org; Wed, 05 Oct 2011 17:33:11 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZ5R-0000aC-Hp; Wed, 05 Oct 2011 17:33:10 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBZ5K-000167-NR; Wed, 05 Oct 2011 17:33:02 -0400 From: Glenn Morris To: 2025-done@debbugs.gnu.org Subject: Re: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening References: <87r62s20po.fsf@escher.local.home> <87botvltzw.fsf@escher.home> <4E8CA7F6.207@swipnet.se> X-Spook: FIPS140 secure quiche nuclear encryption Aladdin X-Ran: (kyZ;4.VDFK_b_oBwN+NY1dtzsJcp7!Wgl09~P0lbQ5;Xg+RFe[@H?8cm(J+r[1oN/Se@S X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 05 Oct 2011 17:33:01 -0400 In-Reply-To: <4E8CA7F6.207@swipnet.se> ("Jan =?utf-8?Q?Dj=C3=A4rv=22's?= message of "Wed, 05 Oct 2011 20:54:46 +0200") Message-ID: <2fbotvjf8y.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) tags 2025 notabug wontfix stop It sounds like there is nothing to be done on the Emacs end, so I will close this. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 17:50:55 2011 Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 21:50:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZMd-0001jc-O4 for submit@debbugs.gnu.org; Wed, 05 Oct 2011 17:50:55 -0400 Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZMc-0001jR-JJ for 2025@debbugs.gnu.org; Wed, 05 Oct 2011 17:50:55 -0400 Received: from furball (dhcp-128-36-14-81.central.yale.edu [128.36.14.81]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p95LohfW027819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 5 Oct 2011 17:50:43 -0400 From: Chong Yidong To: Jan =?utf-8?Q?Dj=C3=A4rv?= Subject: Re: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening References: <87r62s20po.fsf@escher.local.home> <87botvltzw.fsf@escher.home> <4E8CA7F6.207@swipnet.se> Date: Wed, 05 Oct 2011 17:50:42 -0400 In-Reply-To: <4E8CA7F6.207@swipnet.se> ("Jan \=\?utf-8\?Q\?Dj\=C3\=A4rv\=22's\?\= message of "Wed, 05 Oct 2011 20:54:46 +0200") Message-ID: <87aa9f3y6l.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 2025 Cc: Glenn Morris , Stephen Berman , 2025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Jan Dj=C3=A4rv writes: > A hint is just a hint, the WM may do as it please anyway. It is > considered bad behaviour to try to steal input focus when started. It > should depend on what policy the user has set, focus-follows-mouse or > click-to-focus. > > If Emacs is started with focus-follows-mouse and the mouse isn't in a > frame, I would expect Emacs not to have focus. However, some WMs warp > the mouse to newly started applications. For click-to-focus I think > the WM just does what it thinks is best. Some WMs have a setting > ("give focus to new window") which the user can use to influence this. > > So to conclude, if Emacs where to try do anything, there are window > managers where this would fail anyway. Better if the OP can get KWin > to behave. Maybe there is some option for this in KWin. According to teh Google, the Kwin setting in question is called "focus stealing prevention level", which should be set to "none" to allow newly-launched applications to acquire focus. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 18:19:50 2011 Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 22:19:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZob-0002PI-Ni for submit@debbugs.gnu.org; Wed, 05 Oct 2011 18:19:50 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RBZoZ-0002P5-47 for 2025@debbugs.gnu.org; Wed, 05 Oct 2011 18:19:48 -0400 Received: (qmail invoked by alias); 05 Oct 2011 22:19:35 -0000 Received: from i59F56543.versanet.de (EHLO escher.home) [89.245.101.67] by mail.gmx.net (mp004) with SMTP; 06 Oct 2011 00:19:35 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/NZvc8gj3Nkrp9HF2PLmX+vMRUQyRSCoXRbfLREz zhFHZ0rhmIBPXf Received: by escher.home (Postfix, from userid 1000) id 961C422F0B; Thu, 6 Oct 2011 00:19:33 +0200 (CEST) From: Stephen Berman To: Chong Yidong Subject: Re: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening References: <87r62s20po.fsf@escher.local.home> <87botvltzw.fsf@escher.home> <4E8CA7F6.207@swipnet.se> <87aa9f3y6l.fsf@stupidchicken.com> Date: Thu, 06 Oct 2011 00:19:31 +0200 In-Reply-To: <87aa9f3y6l.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 05 Oct 2011 17:50:42 -0400") Message-ID: <8762k3rsi4.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Y-GMX-Trusted: 0 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 2025 Cc: Jan =?utf-8?Q?Dj=C3=A4rv?= , 2025@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Wed, 05 Oct 2011 17:50:42 -0400 Chong Yidong wro= te: > Jan Dj=C3=A4rv writes: > >> A hint is just a hint, the WM may do as it please anyway. It is >> considered bad behaviour to try to steal input focus when started. It >> should depend on what policy the user has set, focus-follows-mouse or >> click-to-focus. >> >> If Emacs is started with focus-follows-mouse and the mouse isn't in a >> frame, I would expect Emacs not to have focus. However, some WMs warp >> the mouse to newly started applications. For click-to-focus I think >> the WM just does what it thinks is best. Some WMs have a setting >> ("give focus to new window") which the user can use to influence this. >> >> So to conclude, if Emacs where to try do anything, there are window >> managers where this would fail anyway. Better if the OP can get KWin >> to behave. Maybe there is some option for this in KWin. > > According to teh Google, the Kwin setting in question is called "focus > stealing prevention level", which should be set to "none" to allow > newly-launched applications to acquire focus. You beat me to the punch :-). That indeed seems to do the trick. (Maybe I should take more time to learn about KWin -- but that would mean having less time to spend on Emacs...) Steve Berman From unknown Fri Jun 20 05:27:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Nov 2011 11: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