From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: mouse-autoselect-window Date: Wed, 05 Sep 2007 20:33:03 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1189013599 12151 80.91.229.12 (5 Sep 2007 17:33:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 17:33:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 05 19:33: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 1ISykb-00078p-NL for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 19:33:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISyka-0005SD-4E for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 13:33:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISykW-0005Ry-Ko for emacs-devel@gnu.org; Wed, 05 Sep 2007 13:33:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISykU-0005Rg-6H for emacs-devel@gnu.org; Wed, 05 Sep 2007 13:33:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISykU-0005Rd-16 for emacs-devel@gnu.org; Wed, 05 Sep 2007 13:33:06 -0400 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISykT-0000Nd-Ld for emacs-devel@gnu.org; Wed, 05 Sep 2007 13:33:05 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-205-244.inter.net.il [84.229.205.244]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id DNW25932 (AUTH halo1); Wed, 5 Sep 2007 20:33:03 +0300 (IDT) In-reply-to: X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:77875 Archived-At: > From: "Drew Adams" > Date: Tue, 4 Sep 2007 22:53:14 -0700 > > When you move the mouse to a different frame, the mode line is activated, > and the menu-bar and the tool-bar icons change (depending on the buffer), > giving the impression that the focus has shifted to the window under the > mouse in the new frame. But the focus remains in the last window the mouse > was in in the old frame. The frame border and title bar of the old frame > show that it still has the focus; it is only the mode line, menu-bar, and > tool bar that indicate (falsely) the contrary. This happens with the (default) focus policy on MS-Windows. For this Emacs feature to work properly, you need to change the window manager's focus policy to follow mouse (this is usually the default behavior on X, or at least it used to be, before the proliferation of desktop and windows managers that emulate MS-Windows). > IIUC, on MS Windows there is no way for Emacs to override the > click-to-focus-frame behavior. Emacs cannot override that, but you as the user can do that (globally, for all the windows on your desktop). One way of doing that is to install the TweakUI package from the Windows PowerToys collection. TweakUI has an option to change focus policy to follow mouse pointer.