From unknown Fri Jun 20 18:22:52 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Reply-To: Stephen Berman , 2025@debbugs.gnu.org Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 24 Jan 2009 15:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2025 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123281022720682 (code B ref -1); Sat, 24 Jan 2009 15:25:03 +0000 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 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 unknown Fri Jun 20 18:22:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 04:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stephen Berman Cc: 2025@debbugs.gnu.org Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.131779008620694 (code B ref 2025); Wed, 05 Oct 2011 04:49:02 +0000 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 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-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 unknown Fri Jun 20 18:22:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 08:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 2025@debbugs.gnu.org Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.131780350417078 (code B ref 2025); Wed, 05 Oct 2011 08:32:01 +0000 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 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-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 unknown Fri Jun 20 18:22:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 17:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stephen Berman Cc: 2025@debbugs.gnu.org Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.13178349678815 (code B ref 2025); Wed, 05 Oct 2011 17:17:01 +0000 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 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-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-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 unknown Fri Jun 20 18:22:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 18:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: Stephen Berman , 2025@debbugs.gnu.org Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.131784090017805 (code B ref 2025); Wed, 05 Oct 2011 18:55:01 +0000 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: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 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-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 unknown Fri Jun 20 18:22:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Stephen Berman Subject: bug#2025: closed (Re: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening) Message-ID: References: <2fbotvjf8y.fsf@fencepost.gnu.org> <87r62s20po.fsf@escher.local.home> X-Gnu-PR-Message: they-closed 2025 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug wontfix Reply-To: 2025@debbugs.gnu.org Date: Wed, 05 Oct 2011 21:34:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1317850443-2327-1" This is a multi-part message in MIME format... ------------=_1317850443-2327-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #2025: 23.0.60; emacsclient: frame does not get focus on opening which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 2025@debbugs.gnu.org. --=20 2025: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2025 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1317850443-2327-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2025-done) 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 1RBZ5S-0000aL-Jq for submit@debbugs.gnu.org; Wed, 05 Oct 2011 17:33:10 -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: 2025-done 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. ------------=_1317850443-2327-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1317850443-2327-1-- From unknown Fri Jun 20 18:22:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: Glenn Morris , Stephen Berman , 2025@debbugs.gnu.org Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.13178514566675 (code B ref 2025); Wed, 05 Oct 2011 21:51:02 +0000 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 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-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 unknown Fri Jun 20 18:22:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 22:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix To: Chong Yidong Cc: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 2025@debbugs.gnu.org Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.13178531909260 (code B ref 2025); Wed, 05 Oct 2011 22:20:02 +0000 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 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-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