all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: mouse-autoselect-window raises frames
Date: Wed, 10 Oct 2007 14:41:42 -0400	[thread overview]
Message-ID: <jwvd4vmvmta.fsf-monnier+emacs@gnu.org> (raw)


I started to see frames raised while I was just moving my mouse.
Placing `debug-on-entry' on `raise-frame' showed the problem to be:

  Debugger entered--entering a function:
  * raise-frame(#<frame cast.v8 0x8eba878>)
    select-frame-set-input-focus(#<frame cast.v8 0x8eba878>)
    handle-select-window((select-window (#<window 14 on cast.v8>)))
    call-interactively(handle-select-window nil nil)

I think the problem is that handle-select-window shouldn't call
select-frame-set-input-focus.  It should maybe call x-focus-frame instead.


        Stefan


PS: BTW, select-frame-set-input-focus has a typo in that it checks for
a window-system called `max'.  Should that be `mac' or `mac-carbon' or maybe
(fboundp 'x-focus-frame)?

             reply	other threads:[~2007-10-10 18:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-10 18:41 Stefan Monnier [this message]
2007-10-10 20:44 ` mouse-autoselect-window raises frames martin rudalics
2007-10-11  1:13   ` Stefan Monnier
2007-10-11  8:49     ` martin rudalics
2007-10-11 13:52       ` Stefan Monnier
2007-10-11 13:55         ` David Kastrup
2007-10-11 18:15         ` martin rudalics
2007-10-11 20:22           ` Stefan Monnier
2007-10-11 21:12             ` martin rudalics
2007-10-12  1:13               ` Stefan Monnier
2007-10-11 21:44             ` martin rudalics
2007-10-11 12:32     ` martin rudalics

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=jwvd4vmvmta.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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.