unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: chad <yandros@gmail.com>
Cc: emacs-devel@gnu.org
Subject: RE: prevent raising a frame from also input-focusing it
Date: Sun, 30 Nov 2014 16:14:19 -0800 (PST)	[thread overview]
Message-ID: <23fc3a09-c51e-486d-b269-24c4441673ff@default> (raw)
In-Reply-To: <C3FC41AD-9EFA-4A31-982F-CB40047C385F@gmail.com>

> This is largely a function of the user's window manager (of which
> there are dozens in active use), not emacs.
> 
> The reason that you haven't noticed it under MSWindows

I think you misread what I wrote.  I do notice, and always have
noticed, it under MSWindows, which is why I set option
`w32-grab-focus-on-raise' to nil, as I said.  The case reported
where this is a problem is not Windows but, IIUC, GNU/Linux.

Which window mgr, I don't know, and you are right that a window mgr
might not provide any hooks for Emacs to provide, say, an option
similar to `w32-grab-focus-on-raise'.  But has there even been an
attempt to do that?

> is that you (mostly) don't get a choice of window managers there.

MSWindows has one window mgr, yes.  But at least Emacs users
on Windows have a choice in this matter, thanks to option
`w32-grab-focus-on-raise'.

> Presumably, whatever wm you're using under GNU/Linux (which
> might be controlled by your MSWindows machine, for example if
> you're using an MSWindows X Server) uses the behavior you like
> by default.

Not sure what you mean.  It is true that when I use GNU/Linux
(with Emacs 21), I am accessing it on a remote box from my
Windows laptop, using, for example, VNC (or any number of other
ways to connect, none of which I've found to be problematic in
this regard).

> Focus-on-raise is the default behavior of many window managers.
> How to change it depends entirely on the wm in question.

I expected as much, but I appreciate your reply.

Can we not hope for Emacs to provide something similar to
option  `w32-grab-focus-on-raise' for other popular window
mgrs?  If Emacs Dev cared more about the use case of a
standalone minibuffer, and frames in general, I expect that
we could.

Especially for an app such as Emacs that controls windows,
frames, cursor movement, focus, etc. by keyboard, it makes
little sense to suppose that the two different actions
(from a user point of view) of (1) raising a frame and
(2) input-focusing it should be coupled, with no easy way to
uncouple them.



  reply	other threads:[~2014-12-01  0:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-30 18:59 prevent raising a frame from also input-focusing it Drew Adams
2014-11-30 23:48 ` chad
2014-12-01  0:14   ` Drew Adams [this message]
2014-12-01 19:26   ` Alan Schmitt
2014-12-01 19:59     ` chad
2014-12-01 21:31       ` Alan Schmitt

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=23fc3a09-c51e-486d-b269-24c4441673ff@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=yandros@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).