all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Glenn Morris <rgm@gnu.org>
Cc: Stephen Berman <stephen.berman@gmx.net>, 2025@debbugs.gnu.org
Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening
Date: Wed, 05 Oct 2011 20:54:46 +0200	[thread overview]
Message-ID: <4E8CA7F6.207@swipnet.se> (raw)
In-Reply-To: <lc62k3we9d.fsf@fencepost.gnu.org>



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.






  reply	other threads:[~2011-10-05 18:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 15:16 bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Stephen Berman
2011-10-05  4:48 ` Glenn Morris
2011-10-05  8:31   ` Stephen Berman
2011-10-05 17:15     ` Glenn Morris
2011-10-05 18:54       ` Jan Djärv [this message]
2011-10-05 21:33         ` Glenn Morris
2011-10-05 21:50         ` Chong Yidong
2011-10-05 22:19           ` Stephen Berman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E8CA7F6.207@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=2025@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.