From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Date: Wed, 05 Oct 2011 17:50:42 -0400 Message-ID: <87aa9f3y6l.fsf@stupidchicken.com> References: <87r62s20po.fsf@escher.local.home> <87botvltzw.fsf@escher.home> <4E8CA7F6.207@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317851466 6024 80.91.229.12 (5 Oct 2011 21:51:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2011 21:51:06 +0000 (UTC) Cc: Stephen Berman , 2025@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 23:51:01 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZMj-0006ND-EQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 23:51:01 +0200 Original-Received: from localhost ([::1]:40697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBZMi-00038T-RK for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 17:51:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBZMg-00038C-H8 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 17:50:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBZMf-0005ki-DR for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 17:50:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBZMf-0005ke-Ah for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 17:50:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBZMk-0001jy-2s for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 17:51:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.13178514566675 (code B ref 2025); Wed, 05 Oct 2011 21:51:02 +0000 Original-Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 21:50:56 +0000 Original-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 Original-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 Original-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 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") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 05 Oct 2011 17:51:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52236 Archived-At: 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.