From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: mouse-autoselect-window raises frames Date: Thu, 11 Oct 2007 21:13:02 -0400 Message-ID: References: <470D3993.8040003@gmx.at> <470DE3B2.7010109@gmx.at> <470E682F.7090007@gmx.at> <470E91D3.9030204@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192151610 11140 80.91.229.12 (12 Oct 2007 01:13:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2007 01:13:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 12 03:13:19 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ig95X-0008IF-N5 for ged-emacs-devel@m.gmane.org; Fri, 12 Oct 2007 03:13:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ig95R-0008Sc-9b for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 21:13:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ig95O-0008SX-I9 for emacs-devel@gnu.org; Thu, 11 Oct 2007 21:13:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ig95M-0008SI-3J for emacs-devel@gnu.org; Thu, 11 Oct 2007 21:13:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ig95L-0008SF-Ut for emacs-devel@gnu.org; Thu, 11 Oct 2007 21:13:03 -0400 Original-Received: from tomts16.bellnexxia.net ([209.226.175.4] helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ig95L-00029t-Lk for emacs-devel@gnu.org; Thu, 11 Oct 2007 21:13:03 -0400 Original-Received: from ceviche.home ([70.55.141.81]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071012011302.SPJV574.tomts16-srv.bellnexxia.net@ceviche.home> for ; Thu, 11 Oct 2007 21:13:02 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3F511B41BB; Thu, 11 Oct 2007 21:13:01 -0400 (EDT) In-Reply-To: <470E91D3.9030204@gmx.at> (martin rudalics's message of "Thu\, 11 Oct 2007 23\:12\:51 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80678 Archived-At: > Strange. handle_one_xevent has > if (WINDOWP(window) > && !EQ (window, last_window) > && !EQ (window, selected_window) > && (focus_follows_mouse > || (EQ (XWINDOW (window)->frame, > XWINDOW (selected_window)->frame)))) > { > inev.ie.kind = SELECT_WINDOW_EVENT; > inev.ie.frame_or_window = window; > } > How do you get a select-window event? Don't know. I guess I got into the case where || (EQ (XWINDOW (window)->frame, XWINDOW (selected_window)->frame)))) -- Stefan