unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: 1980@debbugs.gnu.org
Cc: Chong Yidong <cyd@stupidchicken.com>
Subject: bug#1980: 23.0.60; emacs switches focus to graphical frame when server-edit exits terminal frame
Date: Sat, 4 Dec 2010 16:56:49 +0100	[thread overview]
Message-ID: <20101204155649.GA30881@shi.workgroup> (raw)
In-Reply-To: <20090325205143.GK4615@pit.ID-43118.user.dfncis.de>

Hi Chong, Emacs developers, readers of old bug reports,
* Gregor Zattler <telegraph@gmx.net> [25. Mar. 2009]:
> * Chong Yidong <cyd@stupidchicken.com> [24. Mär. 2009]:
>>> When using emacs 23 in daemon mode some graphical emacs frame gets
>>> fokus if an editing session on a terminal window which was initiated
>>> via "emacsclient -t ..." is finished with C-x # (server-edit).  In
>>> order to continue work in the terminal window I have to manually
>>> switch back to the terminal window.
>> 
>> Sorry for the late response.  I haven't been able to reproduce this bug
>> with metacity---closing an `emacsclient -t' client keeps the xterm
>> window in focus.  This problem may be a quirk of the window managers you
>> tried (xfce4 and icwwm-lite); I am not sure what Emacs can do
>> differently to try to mitigate this.
> 
> O.k. I'll test it with other window managers.  ATM I don't have
> time to do this but I will report back when I've done it.

I did some tests and research today: This is not a WM issue, it's
reproducible without any WM.

Meanwhile this issue is discussed in bug 7269 as focus follows
mouse (actually: mouse follows frame).  The workaround mentioned
by Anders Kaseorg in the discussion of the aforementioned bug is
to

M-x customize-save-variable focus-follows-mouse n.

This works for me.  

But I think the default value of this variable is surprising and
it's documentation does not explain that this actually leads to
mouse movements.

Ciao, Gregor





  reply	other threads:[~2010-12-04 15:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-24 17:53 bug#1980: 23.0.60; emacs switches focus to graphical frame when server-edit exits terminal frame Chong Yidong
2009-03-25 20:51 ` Gregor Zattler
2010-12-04 15:56   ` Gregor Zattler [this message]
2010-12-20 11:17     ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2009-01-21 21:09 Gregor Zattler

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=20101204155649.GA30881@shi.workgroup \
    --to=telegraph@gmx.net \
    --cc=1980@debbugs.gnu.org \
    --cc=cyd@stupidchicken.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).