all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Stefan Monnier <monnier@iro.umontreal.ca>, 16681@debbugs.gnu.org
Subject: bug#16681: mouse-autoselect-window missing when switching frames
Date: Sat, 18 Feb 2017 12:37:24 +0100	[thread overview]
Message-ID: <58A831F4.3080907@gmx.at> (raw)
In-Reply-To: <jwv8utnqa4i.fsf@iro.umontreal.ca>

 > In a system with "focus follows mouse" do the following:
 >
 >     % src/emacs -Q --eval '(setq mouse-autoselect-window t)'
 >     C-x 5 2
 >     <place the two frames side by side>
 >     C-x 2
 >     <go to the second frame>
 >     C-x 2
 >
 > Now move mouse "in circle":
 > - top-left window, then top-right window, then bottom-right window, then
 >    bottom-left window, and if you like it, you can keep doing it for a while.
 > notice how this *should* select each one of the four windows in each cycle,
 > but instead only 2 of those windows are selected: when crossing from one
 > frame to the other the new frame is selected, but that frame's selected
 > window is used as the new selected window instead of using that the
 > window into which the mouse just entered.

Is this still an issue (with ‘focus-follows-mouse’ non-nil, obviously)?

If so, could you please check with GDB whether setting a break point in
the MotionNotify case in xterm.c triggers when the mouse crosses from
one frame into another?  To make such a test practical, please replace
the first line

         x_display_set_last_user_time (dpyinfo, event->xmotion.time);

there by some dummy construct like

	if (any == XFRAME (selected_frame))
	  x_display_set_last_user_time (dpyinfo, event->xmotion.time);
	else
	  x_display_set_last_user_time (dpyinfo, event->xmotion.time);

and put the breakpoint at the last line of that construct.

If it doesn't trigger, we'll probably have to put a similar detection
routine into EnterNotify although such an approach might clash with the
window manager's focus-in handling.

Thanks, martin






      parent reply	other threads:[~2017-02-18 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-07 14:18 bug#16681: mouse-autoselect-window missing when switching frames Stefan Monnier
2014-02-07 19:15 ` martin rudalics
2014-02-08  7:42   ` Eli Zaretskii
2017-02-18 11:37 ` martin rudalics [this message]

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=58A831F4.3080907@gmx.at \
    --to=rudalics@gmx.at \
    --cc=16681@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.