From: martin rudalics <rudalics@gmx.at>
To: Glenn Morris <rgm@gnu.org>
Cc: Stephen Berman <Stephen.Berman@gmx.net>, emacs-devel@gnu.org
Subject: Re: mouse-autoselect-window
Date: Sun, 30 Sep 2007 10:47:37 +0200 [thread overview]
Message-ID: <46FF62A9.5070507@gmx.at> (raw)
In-Reply-To: <2rwsu916zh.fsf@fencepost.gnu.org>
> I it tried under Gnome and Window Maker, with and without focus
> follows mouse in the window manager, with f-f-m nil and t, and m-a-w
> nil, t, and 0.1. Results:
>
> f-f-m
> m-a-w nil t
> nil ok ok
> t ok 1
> 0.1 ok 2
>
>
> 1) Works fine with focus follows mouse in the window manager. With a
> click-to-focus window manager, then moving to another frame selects it.
That's the inherent deficiency of Emacs generating a switch-frame event
when there's a SELECT_WINDOW_EVENT. Whatever I do to ignore the latter
the former still gets in the way. It was also the reason for moving
`focus-follows-mouse' to C level. Now I can blame the user for not
setting this correctly - I'll have to state that in the doc-string of
`focus-follows-mouse', obviously.
> 2) Works fine with focus follows mouse in the window manager. With a
> click-to-focus window manager, then moving to another frame exhibits
> the old erroneous behaviour: the mode-line changes to active, but the
> frame is not selected.
The same. For an integer (positive or negative) I have to schedule a
SELECT_WINDOW_EVENT because I must assume that the window-manager
supports a focus follows mouse policy.
> It could well be argued that these two cases are not important,
> because focus-follows-mouse has the wrong setting (does not match the
> window manager policy).
That was the driving idea. Alternatively I would have had to introduce
another variable like `mouse-autoselect-frame'.
> HTH.
Yes, it's the expected behavior. Could you, with m-a-w 1.0 and f-f-m t
and focus follows mouse in the window manager confirm that the following
DTRT: You have two frames A and B. A has two windows 1 and 2, where 1
is active and has the mouse cursor in it. Move the mouse to frame B to
select it. Now move the mouse to window 2 on frame A. Does it get
selected? Before, Emacs consumed 99% CPU here because it got trapped in
the for (;;) loop of kbd_buffer_get_event with an unread select-window
event (you should be able to reproduce this with the scenario above and
without my patch applied).
Another issue is whether Emacs should be able to focus a frame but _not_
raise it simultaneously. I use auto-raise window-management. Hence,
Emacs policy and that of my window manager coincide. AFAIK, many focus
follows mouse users prefer a focus-only policy which clashes with the
current behavior. Fixing this is beyond Emacs 22, though. Moreover,
we'd have to decide first how a switch-frame event issued by a
focus-only window-manager could inhibit Emacs raising the frame.
Thanks a lot for testing.
next prev parent reply other threads:[~2007-09-30 8:47 UTC|newest]
Thread overview: 95+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-05 5:53 mouse-autoselect-window Drew Adams
2007-09-05 10:36 ` mouse-autoselect-window Robert J. Chassell
2007-09-05 10:49 ` mouse-autoselect-window David Kastrup
2007-09-05 12:56 ` mouse-autoselect-window Stephen Berman
2007-09-05 16:49 ` mouse-autoselect-window Robert J. Chassell
2007-09-05 22:46 ` mouse-autoselect-window Drew Adams
2007-09-05 23:08 ` mouse-autoselect-window Jason Rumney
2007-09-06 16:36 ` mouse-autoselect-window Drew Adams
2007-09-06 17:23 ` mouse-autoselect-window martin rudalics
2007-09-06 20:05 ` mouse-autoselect-window David Kastrup
2007-09-06 21:12 ` mouse-autoselect-window Jason Rumney
2007-09-06 18:42 ` mouse-autoselect-window Davis Herring
2007-09-07 3:28 ` mouse-autoselect-window Jeremy Maitin-Shepard
2007-09-07 8:26 ` mouse-autoselect-window Eli Zaretskii
2007-09-07 8:58 ` mouse-autoselect-window martin rudalics
2007-09-07 15:54 ` mouse-autoselect-window Davis Herring
2007-09-07 18:21 ` mouse-autoselect-window Eli Zaretskii
2007-09-07 19:46 ` mouse-autoselect-window Davis Herring
2007-09-08 7:05 ` mouse-autoselect-window Eli Zaretskii
2007-09-08 8:08 ` mouse-autoselect-window Jan Djärv
2007-09-08 0:46 ` mouse-autoselect-window Jason Rumney
2007-09-08 7:00 ` mouse-autoselect-window Eli Zaretskii
2007-09-08 9:31 ` mouse-autoselect-window martin rudalics
2007-09-08 20:56 ` mouse-autoselect-window Jason Rumney
2007-09-07 18:20 ` mouse-autoselect-window Eli Zaretskii
2007-09-07 8:32 ` mouse-autoselect-window martin rudalics
2007-09-07 17:01 ` mouse-autoselect-window Jeremy Maitin-Shepard
2007-09-07 18:56 ` mouse-autoselect-window martin rudalics
2007-09-08 7:53 ` mouse-autoselect-window Jan Djärv
2007-09-06 3:04 ` mouse-autoselect-window Robert J. Chassell
2007-09-06 16:35 ` mouse-autoselect-window Drew Adams
2007-09-05 18:04 ` mouse-autoselect-window martin rudalics
2007-09-05 22:46 ` mouse-autoselect-window Drew Adams
2007-09-06 9:35 ` mouse-autoselect-window martin rudalics
2007-09-06 16:37 ` mouse-autoselect-window Drew Adams
2007-09-06 17:28 ` mouse-autoselect-window martin rudalics
2007-09-06 21:40 ` mouse-autoselect-window Drew Adams
2007-09-06 20:58 ` mouse-autoselect-window Jason Rumney
2007-09-06 21:11 ` mouse-autoselect-window Drew Adams
2007-09-07 0:02 ` mouse-autoselect-window Stefan Monnier
2007-09-07 6:45 ` mouse-autoselect-window Leo
2007-09-07 8:33 ` mouse-autoselect-window Andreas Schwab
2007-09-06 12:01 ` mouse-autoselect-window Stephen Berman
2007-09-06 12:22 ` mouse-autoselect-window martin rudalics
2007-09-06 14:17 ` mouse-autoselect-window Stephen Berman
2007-09-06 15:10 ` mouse-autoselect-window martin rudalics
2007-09-06 16:00 ` mouse-autoselect-window Stephen Berman
2007-09-06 17:31 ` mouse-autoselect-window martin rudalics
2007-09-06 18:20 ` mouse-autoselect-window Stephen Berman
2007-09-06 20:46 ` mouse-autoselect-window martin rudalics
2007-09-06 22:58 ` mouse-autoselect-window Stephen Berman
2007-09-07 6:51 ` mouse-autoselect-window martin rudalics
2007-09-07 7:33 ` mouse-autoselect-window Drew Adams
2007-09-07 8:09 ` mouse-autoselect-window Stephen Berman
2007-09-07 12:31 ` mouse-autoselect-window Robert J. Chassell
2007-09-07 8:38 ` mouse-autoselect-window martin rudalics
2007-09-07 8:09 ` mouse-autoselect-window Stephen Berman
2007-09-07 8:53 ` mouse-autoselect-window martin rudalics
2007-09-07 9:16 ` mouse-autoselect-window Stephen Berman
2007-09-07 9:33 ` mouse-autoselect-window martin rudalics
2007-09-06 14:30 ` mouse-autoselect-window Stefan Monnier
2007-09-06 15:44 ` mouse-autoselect-window Stephen Berman
2007-09-18 7:02 ` mouse-autoselect-window martin rudalics
2007-09-18 10:16 ` mouse-autoselect-window Stephen Berman
2007-09-18 14:07 ` mouse-autoselect-window martin rudalics
2007-09-18 21:00 ` mouse-autoselect-window Stephen Berman
2007-09-18 14:41 ` mouse-autoselect-window Drew Adams
2007-09-18 15:34 ` mouse-autoselect-window martin rudalics
2007-09-18 16:10 ` mouse-autoselect-window Drew Adams
2007-09-18 16:47 ` mouse-autoselect-window martin rudalics
2007-09-18 17:04 ` mouse-autoselect-window Drew Adams
2007-09-18 21:01 ` mouse-autoselect-window Stephen Berman
2007-09-28 9:11 ` mouse-autoselect-window martin rudalics
2007-09-29 21:45 ` mouse-autoselect-window Glenn Morris
2007-09-30 8:47 ` martin rudalics [this message]
2007-09-30 21:48 ` mouse-autoselect-window Glenn Morris
2007-10-01 6:29 ` mouse-autoselect-window martin rudalics
2007-11-07 12:18 ` mouse-autoselect-window Stephen Berman
2007-11-07 13:13 ` mouse-autoselect-window martin rudalics
2007-11-07 14:30 ` mouse-autoselect-window Stephen Berman
2007-11-07 15:32 ` mouse-autoselect-window martin rudalics
2007-09-18 22:24 ` mouse-autoselect-window Jason Rumney
2007-09-18 22:46 ` mouse-autoselect-window Drew Adams
2007-09-18 23:13 ` mouse-autoselect-window Jason Rumney
2007-09-18 23:24 ` mouse-autoselect-window Drew Adams
2007-09-19 4:02 ` mouse-autoselect-window Eli Zaretskii
2007-09-05 17:33 ` mouse-autoselect-window Eli Zaretskii
2007-09-05 17:52 ` mouse-autoselect-window Eli Zaretskii
[not found] <31071.1189309764@cs.sunysb.edu>
2007-09-09 9:43 ` mouse-autoselect-window Jason Rumney
2007-09-09 13:52 ` mouse-autoselect-window Michael Kifer
2007-09-09 14:09 ` mouse-autoselect-window Jason Rumney
-- strict thread matches above, loose matches on Subject: below --
2003-12-29 19:01 mouse-autoselect-window Robert Marshall
2003-12-29 21:48 ` mouse-autoselect-window Eli Zaretskii
2003-12-29 22:49 ` mouse-autoselect-window Kevin Rodgers
[not found] ` <mailman.745.1072738378.868.help-gnu-emacs@gnu.org>
2003-12-30 7:20 ` mouse-autoselect-window Robert Marshall
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=46FF62A9.5070507@gmx.at \
--to=rudalics@gmx.at \
--cc=Stephen.Berman@gmx.net \
--cc=emacs-devel@gnu.org \
--cc=rgm@gnu.org \
/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.