From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Date: Wed, 05 Oct 2011 20:54:46 +0200 Message-ID: <4E8CA7F6.207@swipnet.se> References: <87r62s20po.fsf@escher.local.home> <87botvltzw.fsf@escher.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317840907 31432 80.91.229.12 (5 Oct 2011 18:55:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2011 18:55:07 +0000 (UTC) Cc: Stephen Berman , 2025@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 20:55:03 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 1RBWcQ-0002Ij-Li for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 20:55:02 +0200 Original-Received: from localhost ([::1]:60090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBWcP-0006cF-KU for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 14:55:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBWcN-0006c5-5i for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 14:55:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBWcM-0008Pv-1F for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 14:54:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBWcL-0008Pr-TF for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 14:54:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBWcP-0004dM-Lc for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 14:55:01 -0400 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.131784090017805 (code B ref 2025); Wed, 05 Oct 2011 18:55:01 +0000 Original-Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 18:55:00 +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 1RBWcN-0004d7-Bq for submit@debbugs.gnu.org; Wed, 05 Oct 2011 14:54:59 -0400 Original-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 Original-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" Original-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 Original-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) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 05 Oct 2011 14:55:01 -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:52227 Archived-At: 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.