From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16681: mouse-autoselect-window missing when switching frames Date: Sat, 18 Feb 2017 12:37:24 +0100 Message-ID: <58A831F4.3080907@gmx.at> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1487417893 26635 195.159.176.226 (18 Feb 2017 11:38:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2017 11:38:13 +0000 (UTC) To: Stefan Monnier , 16681@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 18 12:38:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf3L5-0006Or-JD for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2017 12:38:07 +0100 Original-Received: from localhost ([::1]:58135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cf3LB-0006K6-83 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2017 06:38:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cf3L3-0006Jo-PD for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 06:38:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cf3L0-0007r7-KH for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 06:38:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cf3L0-0007r3-H8 for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 06:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cf3L0-0006wE-8J for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 06:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2017 11:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16681 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16681-submit@debbugs.gnu.org id=B16681.148741786726648 (code B ref 16681); Sat, 18 Feb 2017 11:38:02 +0000 Original-Received: (at 16681) by debbugs.gnu.org; 18 Feb 2017 11:37:47 +0000 Original-Received: from localhost ([127.0.0.1]:44247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf3Kl-0006vk-5F for submit@debbugs.gnu.org; Sat, 18 Feb 2017 06:37:47 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:53156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cf3Kk-0006vW-2A for 16681@debbugs.gnu.org; Sat, 18 Feb 2017 06:37:46 -0500 Original-Received: from [192.168.1.100] ([213.162.68.64]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LiHc7-1c2MmX0Roh-00nNdj; Sat, 18 Feb 2017 12:37:30 +0100 In-Reply-To: X-Provags-ID: V03:K0:wIhf9OprE/4YFGkfBB70qCMeODuoOwIjE9X2RjMjXWFrZHNBWfQ TOITb5ZGpUL7YYDT9tHImAeZwg71GTpaM1tXw56Fy3uQYVbTUyWKhBBo3++IU8BXh4U7INx EGUbY8aj3j3/3OTlRcU5cJn6DQ0aKKhEeVTN11WyzS0/LUqz7KzaFgdgDVAlklO4nRZsCfJ E6HkpizizRmITAvWdlfaw== X-UI-Out-Filterresults: notjunk:1;V01:K0:iBb90hfy6i0=:sp1x03hUarToGtHQlchW5L kxa5qtY3cB2LHeDMxn4aPxX97vmrMs5EIAA7SwYKMYNqpmcBl5mgMGS4gWOnvIpFbqDh/gL5N B4Enj6vIQZEYwvXwXRqT+1rc5bDV7l07jhXo82zgnTC02obWJHGH8T5X7h+rljtFeY6YoVTEe tggK4qeckZYruVktyuz327XSND/PmA0MHQ1nHwOsCyNnD14zgW1cZmtWwpXEaeHPueRQgfA7G uFRSTB+F45H1xwkobeznuyTeTpexkLPf488jQ8jzvTDLK3DxNMG3zJ9Q/8l1KR5iZFzfdYICc tBf8NlCJ3lVaJfrg2MmAirY2es+AqOXrM6VgRD8+eDNiblxJhapnGBS7Onk2GxjT/Xeq8JUIE Gnz6QzzW3m3QBozGNZ8KiYbHxgYbfAj/jS8TtGwLl3PHRcX/1qX3ze5ryXgwRE8gaK0Cww58S Yzl3XZsVV+72xNLZJm3F7q13yiUGESqKX27xEiIG4dSaJPQveUoUV5GcfFR64G+p4P6sZy51d WTe/FrB/+oNpFW+OImkqJkG1LoA5O21UBtgr2yfb2eaRTquEB+n9sUefsHU/AXFXXNAtxfIcY H2MqyQaXYejnmf2IR0wIQVjnB7DSr9wdUZE5uk0lNZ/0TV6UmB7j5jHgZL96pPI2ynuy5VaQX BZJCLN2k/cKtXgW1b3FDPbMa2ADUOmpmQdWOmGexjrWYslm8TsvXb9KzXzMEQfORzcDS8farr jjgXDKFa1AWJK2DUAFQ8PWv1YvU2Xlh/rbooAC+HjLqj8doKnOYWxCL815mJF3iVpoxvJhza X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129499 Archived-At: > In a system with "focus follows mouse" do the following: > > % src/emacs -Q --eval '(setq mouse-autoselect-window t)' > C-x 5 2 > > C-x 2 > > C-x 2 > > Now move mouse "in circle": > - top-left window, then top-right window, then bottom-right window, th= en > 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 c= ycle, > but instead only 2 of those windows are selected: when crossing from o= ne > frame to the other the new frame is selected, but that frame's selecte= d > 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 =E2=80=98focus-follows-mouse=E2=80=99 non-ni= l, 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 =3D=3D 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