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 16:22:54 -0400 Message-ID: References: <470D3993.8040003@gmx.at> <470DE3B2.7010109@gmx.at> <470E682F.7090007@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192134203 26442 80.91.229.12 (11 Oct 2007 20:23:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 20:23:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 11 22:23:22 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 1Ig4Yy-00009J-9L for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 22:23:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ig4Ys-0003J3-86 for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 16:23:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ig4Yp-0003HC-Ei for emacs-devel@gnu.org; Thu, 11 Oct 2007 16:23:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ig4Yo-0003Ex-2z for emacs-devel@gnu.org; Thu, 11 Oct 2007 16:23:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ig4Yn-0003Ej-QF for emacs-devel@gnu.org; Thu, 11 Oct 2007 16:23:09 -0400 Original-Received: from x-132-204-254-24.xtpr.umontreal.ca ([132.204.254.24] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ig4Yj-00053e-Bk for emacs-devel@gnu.org; Thu, 11 Oct 2007 16:23:09 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 70163B41BB; Thu, 11 Oct 2007 16:22:54 -0400 (EDT) In-Reply-To: <470E682F.7090007@gmx.at> (martin rudalics's message of "Thu\, 11 Oct 2007 20\:15\:11 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:80656 Archived-At: >> I do want mouse autoselection. And changing focus-follows-mouse has no >> effect w.r.t this problem. > `focus-follows-mouse' nil should inhibit selecting and subsequently > raising another frame. If it doesn't it's a bug. I saw the same problem with focus-follows-mouse set to nil, so I guess there is a bug. > The problem is that mouse movement also generates a switch-frame event > which is equally disturbing. Why should it be disturbing? AFAIK all it does is `select-frame', right? > But I'm already convinced that there's no reason to either focus or raise > the frame in `handle-select-window'. Great ;-) >> If the window-manager wants to raise the window in order to give it focus, >> that's "OK" (it would piss me off, but that's why I don't use such a window >> manager). But it's not OK for Emacs to do that. > An auto-raise window-manager doesn't raise the window in order to give > it focus but simply in order to avoid changing the position of `point' > (as you would do with a mouse click) when you want to switch to a > specific window with the mouse. I was thinking of the WM raising the window not because of auto-raise but because of click-to-focus and more generally because it wants to impose a policy where "focus'd frame is never behind another". Stefan