From unknown Sat Aug 16 15:57:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4892 <4892@debbugs.gnu.org> To: bug#4892 <4892@debbugs.gnu.org> Subject: Status: compute_motion, mouse_position Reply-To: bug#4892 <4892@debbugs.gnu.org> Date: Sat, 16 Aug 2025 22:57:10 +0000 retitle 4892 compute_motion, mouse_position reassign 4892 emacs submitter 4892 David Reitter severity 4892 normal thanks From david.reitter@gmail.com Mon Nov 9 09:10:28 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Nov 2009 17:10:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.2 required=4.0 tests=AWL,FOURLA,IMPRONONCABLE_2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA9HARup006324 for ; Mon, 9 Nov 2009 09:10:28 -0800 Received: from mail.gnu.org ([199.232.76.166]:49175 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N7Xl4-0003Do-IL for emacs-pretest-bug@gnu.org; Mon, 09 Nov 2009 12:10:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N7Xkz-0002Uj-Se for emacs-pretest-bug@gnu.org; Mon, 09 Nov 2009 12:10:25 -0500 Received: from qw-out-1920.google.com ([74.125.92.144]:62196) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7Xkz-0002UV-E7 for emacs-pretest-bug@gnu.org; Mon, 09 Nov 2009 12:10:21 -0500 Received: by qw-out-1920.google.com with SMTP id 5so637591qwc.24 for ; Mon, 09 Nov 2009 09:10:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=MAJ/vyTbchIw7RzUFnE5zcPOJQOd3dfJWtF+YGbbtoM=; b=DWv2COeGZI/TcDndpSjTrQqrmIL/1otgCmAgKE1z74ZIOGewBEYMPgQvF8XGnNHCqe N3rOROQDWzzVs9yaDKyPdAFzA3QM/kytKz5EaDEzQMLqA0eSYCuuNpxKyP3JMDIV9VnK 0fjd026C3dArEKhdrHsGRUWzTbUTGjqtBNMrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=k7QWKMC51MtzxHuCd1/AswWndESA46prF5Dd/G+2l5kh1ThugrOiXujrAO5GRLkP79 /+M7sxh42Pqr/iKWD/byaV/rW7ZgeATvGhoFghebuw7wxtIqP1X95h2l6KlxVglISsUU o8Rj4SB3MZDzXS3AEN3J6yMAu2KMhmdHkbSKs= Received: by 10.224.29.136 with SMTP id q8mr4242492qac.51.1257786620874; Mon, 09 Nov 2009 09:10:20 -0800 (PST) Received: from scarlett.psy.cmu.edu (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id 23sm592242qyk.7.2009.11.09.09.10.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 09 Nov 2009 09:10:20 -0800 (PST) From: David Reitter Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: compute_motion, mouse_position Date: Mon, 9 Nov 2009 12:10:17 -0500 Message-Id: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@gmail.com> To: emacs-pretest-bug@gnu.org Mime-Version: 1.0 (Apple Message framework v1076) X-Mailer: Apple Mail (2.1076) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) I've run into problems with mouse-position and compute-motion while debugging the broken drag&drop mechanism for faces in the NS port. These problems are probably not specific to NS. 1. (mouse-position) does not return the selected frame when several frames overlap (partially). To reproduce, I arrange the frames on the screen, then select the lower one by clicking with the mouse, then the one that's supposed to go on top. With the mouse cursor still over the intersecting section (on top of the upper frame), I do M-: (mouse- position). This will then return the wrong frame. Reproducible with Emacs -Q (NS port with NS frames) 2. (compute-motion) does not correspond to what's shown on the screen when word-wrap is turned on. 3. (mouse-position) is incorrect when face-remapping-alist is used, enlarging the default face, for example. I hope these are sufficiently specific to understand and identify the code, if not reproduce. Let me know if not, and I can elaborate. In GNU Emacs 23.1.50.1 (i386-apple-darwin10.0.0, NS apple- appkit-1038.11) of 2009-10-08 on scarlett.local Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns' '--without-x' 'CC=gcc -arch i386'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: which-function-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x 5 2 : ( m o u s e - p o s i t i o n ) : : : s-n C-x k s-v C-x C-e C-x C-f t e s t C-y x n s - s h o w - c o l o c o l o x e n l a r C-g x z o o m C-g x g r o w C-g Recent messages: Mark set # Auto-saving... # Making completion list... Quit [2 times] Quit Load-path shadows: None found. From monnier@IRO.UMontreal.CA Mon Nov 9 11:46:21 2009 Received: (at 4892) by emacsbugs.donarmstrong.com; 9 Nov 2009 19:46:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA9JkJ2J021486 for <4892@emacsbugs.donarmstrong.com>; Mon, 9 Nov 2009 11:46:21 -0800 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nA9JkHWM007921; Mon, 9 Nov 2009 14:46:17 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 95E533A1DA; Mon, 9 Nov 2009 14:46:17 -0500 (EST) From: Stefan Monnier To: David Reitter Cc: 4892@debbugs.gnu.org Subject: Re: bug#4892: compute_motion, mouse_position Message-ID: References: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@gmail.com> Date: Mon, 09 Nov 2009 14:46:17 -0500 In-Reply-To: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@gmail.com> (David Reitter's message of "Mon, 9 Nov 2009 12:10:17 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3402=0 > I've run into problems with mouse-position and compute-motion while > debugging the broken drag&drop mechanism for faces in the NS port. > These problems are probably not specific to NS. Both sound like generic bugs, indeed. Until they get fixed, I recommend you try and use posn-at-point and posn-at-x-y rather than compute-motion, whenever possible. For mouse-position, try to use the position info included in input (mouse) events instead. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 02 08:43:13 2019 Received: (at 4892) by debbugs.gnu.org; 2 Dec 2019 13:43:13 +0000 Received: from localhost ([127.0.0.1]:37257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iblyq-0004Uc-RR for submit@debbugs.gnu.org; Mon, 02 Dec 2019 08:43:13 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:56157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iblyo-0004UP-Ux for 4892@debbugs.gnu.org; Mon, 02 Dec 2019 08:43:11 -0500 Received: by mail-wm1-f49.google.com with SMTP id a131so17563167wme.5 for <4892@debbugs.gnu.org>; Mon, 02 Dec 2019 05:43:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Y9CBX+Cd0TVC8d8pF0ZqlonTiQT+C3Aijm2bQ/gexII=; b=PwiWlkgb6Y4oHlpaTQDAbOw1PYWLECQ0ndd53BuCsRrp09WtJidORT0GFE5jeasbjH 0Biib6yHUovRw3owtNTzp4geU8bxj+56NK+M+R4wGcwOcKssemLgH7jPlHsSSZZOMU1k coL/Gq7pM+5bxp9Jg5e9T5uSQFfi/Z5nlN3/Fh3VZzcDxzfHbOOeaIVIFxxwze0Q7Px9 6W/txsp0gUH3cSvY+7sXTmHVkGeN4LNRcfHtXy1esDGSubIhv8MnFb9GG0IjjmxRPjU6 Yz2ID6Vy6RMGUmU0qUSkQGv8DGU3eM7Nwvb6O3ngEugwOvANM0umsxj2BUDW1jFO8QxK p1IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Y9CBX+Cd0TVC8d8pF0ZqlonTiQT+C3Aijm2bQ/gexII=; b=gUj+31M3S6utYTsaP4FcyKOkAdaHLaoBVxYh4lBnBqeQT+1/LH+76pLI2X/QPxMss9 4meGlDvvJhwCNsiT/XK0DrGgns4+yWhHcG/gvbPa2uPwvTCkOF6RhLhdHdHiz2aSOsBz YU+Zoc7SN7bpnBR0Bx+0yAckE1qUR3ixAVmO7MtrlTUuu0tye481wpGpGoOFFjB41Mzy zdp68tersfZtaR9AtTlU1actRsnoT1U9xcbWOibhqxYIwDNse5+XI/SgmiFKeuE1tjqA IBWu2W2DVhGWG8iM8nm0rZPBPg/VUGqrl7sKvGkQ4VWcLhO3gvTrP1fvGsre780UkSjN xSlw== X-Gm-Message-State: APjAAAXwb0cexp6Lb+JP0DQdOcJfpdWkqBv3RRajJxi1eicFKlldO+qH mH/0h3VIBto4r9eitvLz6cw2gKpYTMo= X-Google-Smtp-Source: APXvYqxghQvloKa/Z2+VRd/ETXaJA9f8k6nLPz+0evDjjr3FHeLCmQsUOSspBWjHMCySj3f3oqfFkA== X-Received: by 2002:a1c:9988:: with SMTP id b130mr17267307wme.22.1575294184432; Mon, 02 Dec 2019 05:43:04 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-d56b-bb71-1482-fd6f.holly.idiocy.org. [2001:8b0:3f8:8129:d56b:bb71:1482:fd6f]) by smtp.gmail.com with ESMTPSA id c9sm10110292wmc.47.2019.12.02.05.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 05:43:03 -0800 (PST) From: Alan Third To: David Reitter Subject: Re: bug#4892: compute_motion, mouse_position References: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@gmail.com> Date: Mon, 02 Dec 2019 13:42:55 +0000 In-Reply-To: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@gmail.com> (David Reitter's message of "Mon, 9 Nov 2009 12:10:17 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 4892 Cc: 4892@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) David Reitter writes: > 1. (mouse-position) does not return the selected frame when several > frames overlap (partially). To reproduce, I arrange the frames on the > screen, then select the lower one by clicking with the mouse, then the > one that's supposed to go on top. With the mouse cursor still over > the intersecting section (on top of the upper frame), I do M-: (mouse- > position). This will then return the wrong frame. Reproducible with > Emacs -Q (NS port with NS frames) It looks to me like it returns the last frame that an Emacs mouse event was generated on. That's not necessarily the last frame clicked as the standard behaviour on macOS is to NOT generate application events when an OS window is selected. It's unclear to me exactly what ns_mouse_position should be doing here. I've had a look at the documentation and other terminal's implementations and I'm none the wiser as there seem to be many exceptions. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 04 07:44:15 2019 Received: (at 4892) by debbugs.gnu.org; 4 Dec 2019 12:44:15 +0000 Received: from localhost ([127.0.0.1]:41535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icU0t-0008ME-2E for submit@debbugs.gnu.org; Wed, 04 Dec 2019 07:44:15 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:37841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icU0r-0008M2-3I for 4892@debbugs.gnu.org; Wed, 04 Dec 2019 07:44:13 -0500 Received: by mail-wm1-f49.google.com with SMTP id f129so7790629wmf.2 for <4892@debbugs.gnu.org>; Wed, 04 Dec 2019 04:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5pssJB3Qd9My0EHODX+a/H7IyapNo0V5QYinao+SMcQ=; b=RhvrAD88BC3/qSkIaf4oiiE1Af+sPNwlkA3sEVS0T+pExlSQAEZPFnLbAmOn/KEAEU ZZoz43k8aGOsAdAdOHJCAyFv8CpiUoy2qX3mCc3vI7V0BDTBNQgnVgf6V1y1r4TusR9k miN2wjNVyRo2o5JMuwO/0g9e2P1LlUO6FT2wyw6XfzvORfn8D7wY2+PCWe+IA6GmXo+V LFhuG0WaEK4vnwg+Q1BeBwVzYXPlWwX6EB/5arRp+PBb1y75xdcmzo1OiyKXysE+AdqZ kk4cOhEm8tMB5FdUoQuhZPo/63Z8bzLhj6i8c3knXgXChhjxDHD37oa+ZlvXiHHndHQx vZ0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=5pssJB3Qd9My0EHODX+a/H7IyapNo0V5QYinao+SMcQ=; b=Q2iZJCz7v/aXA6qrJvf6mOurWbBo0b+gbPVbeiLNvOo/wFT+VmU9veV+d5yDE4zr/F 3qUcbSN64j93hKCkFgYsdLwal59RrmKXXh433zpftW0seGAhXs7OP7TB+5mhyrXUKT78 B0oRbKP/ELllEmWkQQ/Y0aLqO88kVsxSq3Lvk0vYrLZ1w8KPYyb2yrVZsEhH7lGrikw3 GOKmPwTX/FEZRniVwJ+Wn5/YRUNpwC0/VL50loIh1gJn/08gcWevezQtjdGwDxzZ13ox IQn7Epl5c8vHwjo5uj59AGpcPk7HXpqXfCQF3aKR2c8RttOCvcehDanjzwyiaWtgeAOr umKg== X-Gm-Message-State: APjAAAVgutHVRtzhm6Yxvv0XbE6WSrqtk8MAvMrDL8Z4z+l6XuNZEKxP me1rW+0sNib+INbAhstkFIA= X-Google-Smtp-Source: APXvYqxTR6Yb4LFp9iwzJPQJPLjiD48sfeMVfwSv9KHYyhufF0Vd/uww3ibX6Ac2aLGNNHSQ8Kif8A== X-Received: by 2002:a1c:c90e:: with SMTP id f14mr14278709wmb.47.1575463446843; Wed, 04 Dec 2019 04:44:06 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-d56b-bb71-1482-fd6f.holly.idiocy.org. [2001:8b0:3f8:8129:d56b:bb71:1482:fd6f]) by smtp.gmail.com with ESMTPSA id l204sm6878351wmf.2.2019.12.04.04.44.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2019 04:44:06 -0800 (PST) Date: Wed, 4 Dec 2019 12:44:04 +0000 From: Alan Third To: David Reitter Subject: [PATCH] Fix mouse-position on macOS (bug#4892) Message-ID: <20191204124404.GA62687@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 4892 Cc: 4892@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) * src/nsterm.m (ns_mouse_position): Implement a search for the frame under the mouse pointer. --- src/nsterm.m | 52 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 14 deletions(-) diff --git a/src/nsterm.m b/src/nsterm.m index 52a9830be8..71234ac783 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2475,7 +2475,7 @@ so some key presses (TAB) are swallowed by the system. */ -------------------------------------------------------------------------- */ { id view; - NSPoint position; + NSPoint view_position; Lisp_Object frame, tail; struct frame *f; struct ns_display_info *dpyinfo; @@ -2498,31 +2498,55 @@ so some key presses (TAB) are swallowed by the system. */ XFRAME (frame)->mouse_moved = 0; dpyinfo->last_mouse_scroll_bar = nil; - f = dpyinfo->ns_focus_frame ? dpyinfo->ns_focus_frame : SELECTED_FRAME (); - if (dpyinfo->last_mouse_frame - /* While dropping, use the last mouse frame only if there is no - currently focused frame. */ - && (!EQ (track_mouse, Qdropping) || !f) + +#ifdef NS_IMPL_COCOA + /* Find the uppermost Emacs frame under the mouse pointer. + + This doesn't work on GNUstep, although in recent versions there + is compatibility code that makes it a noop. */ + + NSPoint screen_position = [NSEvent mouseLocation]; + NSInteger window_number = 0; + do + { + NSWindow *w; + + window_number = [NSWindow windowNumberAtPoint:screen_position + belowWindowWithWindowNumber:window_number]; + w = [NSApp windowWithWindowNumber:window_number]; + + if (w && [[w delegate] isKindOfClass:[EmacsView class]]) + f = ((EmacsView *)[w delegate])->emacsframe; + } + while (window_number > 0 && !f); +#endif + + if (!f) + f = dpyinfo->ns_focus_frame ? dpyinfo->ns_focus_frame : SELECTED_FRAME (); + + /* While dropping, use the last mouse frame only if there is no + currently focused frame. */ + if (!f + && EQ (track_mouse, Qdropping) + && dpyinfo->last_mouse_frame && FRAME_LIVE_P (dpyinfo->last_mouse_frame)) f = dpyinfo->last_mouse_frame; - else - f = dpyinfo->ns_focus_frame ? dpyinfo->ns_focus_frame : SELECTED_FRAME (); if (f && FRAME_NS_P (f)) { view = FRAME_NS_VIEW (f); - position = [[view window] mouseLocationOutsideOfEventStream]; - position = [view convertPoint: position fromView: nil]; - remember_mouse_glyph (f, position.x, position.y, + view_position = [[view window] mouseLocationOutsideOfEventStream]; + view_position = [view convertPoint: view_position fromView: nil]; + remember_mouse_glyph (f, view_position.x, view_position.y, &dpyinfo->last_mouse_glyph); - NSTRACE_POINT ("position", position); + NSTRACE_POINT ("view_position", view_position); if (bar_window) *bar_window = Qnil; if (part) *part = scroll_bar_above_handle; - if (x) XSETINT (*x, lrint (position.x)); - if (y) XSETINT (*y, lrint (position.y)); + if (x) XSETINT (*x, lrint (view_position.x)); + if (y) XSETINT (*y, lrint (view_position.y)); if (time) *time = dpyinfo->last_mouse_movement_time; *fp = f; -- 2.21.0 -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 04 07:49:02 2019 Received: (at 4892) by debbugs.gnu.org; 4 Dec 2019 12:49:02 +0000 Received: from localhost ([127.0.0.1]:41539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icU5V-0008TM-Ow for submit@debbugs.gnu.org; Wed, 04 Dec 2019 07:49:02 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icU5T-0008T2-M4 for 4892@debbugs.gnu.org; Wed, 04 Dec 2019 07:49:00 -0500 Received: by mail-qt1-f194.google.com with SMTP id 14so7586381qtf.5 for <4892@debbugs.gnu.org>; Wed, 04 Dec 2019 04:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=94c+3+cVkg2lj5K4PNvPNDQvj1zB7xXDQHbI2dAR9ck=; b=DHlRQzkgmGZE6HjzF5zc20/8op0pSQXH0Lp3EX4TfelJ803hFBFJ5kRn/m6t0/I63v EBdBPiUVnbz0swp0N9/2c3knVXGVu42ipdI2suGuS9W/huH9Z9UV1zqF80oTH1Kpd3Er n64kDKTRlR9aLm3GZlUZFmFcG8J6kl+uwaBs1MRg6qMdZSD5sopDNWUEL9VXzcuP51A8 WJt1X8x4+26hTXXaFhqDmi/wLmM578JnH5b7XkOd9lfL56jef8et6zb9dqUhFP6h2VZZ O1EuBp+evbggizi+RHRDn7hTfU/ep3ZVRam8bfbAKF+qW7jewNdu/sNLWgEHlNFow/E7 oTWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=94c+3+cVkg2lj5K4PNvPNDQvj1zB7xXDQHbI2dAR9ck=; b=UE6MgdSnWD2xOytQ1o8knF0iYKHSmvs/nZeS6Ylf7c3mEQX4oruiNfwvwKhi3zdN5V tmmH/IRVrF/k55AhdP4xVajBRC/BjeMNSty024f6LIMq+FzsOCLciSkuBzknz5eorKDe eBvZq3cXnZImcrhaCjnT6MkbD3iZ0U9GQc4suHNNqz4Rfh7R/LnWDXxw9YCj1PriDRe4 lt+sL+JVB03ss/H1aQR0WSla14cC7RNFyxaLxZIYVvmnFMaiVcLA6/RJs1cd68ybfHfR 52g+H8nqpWVMclN16xSDSkn4iYuIa7IST2tN3KDk+KGx0VUzZZx3TikRHHOCHW8j1KR/ alow== X-Gm-Message-State: APjAAAUbhH/63IUl1ahlrvcfogf/EZ0lG+f2cil7dybO4vDnl9FC5F3Y w5hh+UwzL0hhYOYTI2SJyw9BSFk5icUSbxQ= X-Google-Smtp-Source: APXvYqzLEVzSCDchCF/WhhP6FgnGFmDlYnLwvAN3f691t8kAJ8EB6ZoInlvgcmVaFujszf5QFTJDVg== X-Received: by 2002:ac8:47cc:: with SMTP id d12mr2498176qtr.246.1575463733933; Wed, 04 Dec 2019 04:48:53 -0800 (PST) Received: from [10.0.1.5] (pool-98-116-189-180.nycmny.fios.verizon.net. [98.116.189.180]) by smtp.gmail.com with ESMTPSA id y200sm3570976qkb.1.2019.12.04.04.48.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2019 04:48:53 -0800 (PST) Date: Wed, 4 Dec 2019 07:48:45 -0500 From: David Reitter To: Alan Third Message-ID: <308f07c7-3aa1-457a-b2fb-edf1039ed7f4@Spark> In-Reply-To: <20191204124404.GA62687@breton.holly.idiocy.org> References: <20191204124404.GA62687@breton.holly.idiocy.org> Subject: Re: [PATCH] Fix mouse-position on macOS (bug#4892) X-Readdle-Message-ID: 308f07c7-3aa1-457a-b2fb-edf1039ed7f4@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5de7ab33_643c9869_1689" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 4892 Cc: 4892@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5de7ab33_643c9869_1689 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Looks good to me (but haven=E2=80=99t tried). Thanks for working on this=21= DR On Dec 4, 2019, 07:44 -0500, Alan Third , wrote: > * src/nsterm.m (ns=5Fmouse=5Fposition): Implement a search for the fram= e > under the mouse pointer. > --- > src/nsterm.m =7C 52 ++++++++++++++++++++++++++++++++++++++-------------= - > 1 file changed, 38 insertions(+), 14 deletions(-) > > diff --git a/src/nsterm.m b/src/nsterm.m > index 52a9830be8..71234ac783 100644 > --- a/src/nsterm.m > +++ b/src/nsterm.m > =40=40 -2475,7 +2475,7 =40=40 so some key presses (TAB) are swallowed b= y the system. */ > -----------------------------------------------------------------------= --- */ > =7B > id view; > - NSPoint position; > + NSPoint view=5Fposition; > Lisp=5FObject frame, tail; > struct frame *f; > struct ns=5Fdisplay=5Finfo *dpyinfo; > =40=40 -2498,31 +2498,55 =40=40 so some key presses (TAB) are swallowed= by the system. */ > X=46RAME (frame)->mouse=5Fmoved =3D 0; > > dpyinfo->last=5Fmouse=5Fscroll=5Fbar =3D nil; > - f =3D dpyinfo->ns=5Ffocus=5Fframe =3F dpyinfo->ns=5Ffocus=5Fframe : S= ELECTED=5F=46RAME (); > - if (dpyinfo->last=5Fmouse=5Fframe > - /* While dropping, use the last mouse frame only if there is no > - currently focused frame. */ > - && (=21EQ (track=5Fmouse, Qdropping) =7C=7C =21f) > + > +=23ifdef NS=5FIMPL=5FCOCOA > + /* =46ind the uppermost Emacs frame under the mouse pointer. > + > + This doesn't work on GNUstep, although in recent versions there > + is compatibility code that makes it a noop. */ > + > + NSPoint screen=5Fposition =3D =5BNSEvent mouseLocation=5D; > + NSInteger window=5Fnumber =3D 0; > + do > + =7B > + NSWindow *w; > + > + window=5Fnumber =3D =5BNSWindow windowNumberAtPoint:screen=5Fposition= > + belowWindowWithWindowNumber:window=5Fnumber=5D; > + w =3D =5BNSApp windowWithWindowNumber:window=5Fnumber=5D; > + > + if (w && =5B=5Bw delegate=5D isKindOfClass:=5BEmacsView class=5D=5D) > + f =3D ((EmacsView *)=5Bw delegate=5D)->emacsframe; > + =7D > + while (window=5Fnumber > 0 && =21f); > +=23endif > + > + if (=21f) > + f =3D dpyinfo->ns=5Ffocus=5Fframe =3F dpyinfo->ns=5Ffocus=5Fframe : S= ELECTED=5F=46RAME (); > + > + /* While dropping, use the last mouse frame only if there is no > + currently focused frame. */ > + if (=21f > + && EQ (track=5Fmouse, Qdropping) > + && dpyinfo->last=5Fmouse=5Fframe > && =46RAME=5FLIVE=5FP (dpyinfo->last=5Fmouse=5Fframe)) > f =3D dpyinfo->last=5Fmouse=5Fframe; > - else > - f =3D dpyinfo->ns=5Ffocus=5Fframe =3F dpyinfo->ns=5Ffocus=5Fframe : S= ELECTED=5F=46RAME (); > > if (f && =46RAME=5FNS=5FP (f)) > =7B > view =3D =46RAME=5FNS=5FVIEW (f); > > - position =3D =5B=5Bview window=5D mouseLocationOutsideOfEventStream=5D= ; > - position =3D =5Bview convertPoint: position fromView: nil=5D; > - remember=5Fmouse=5Fglyph (f, position.x, position.y, > + view=5Fposition =3D =5B=5Bview window=5D mouseLocationOutsideOfEventS= tream=5D; > + view=5Fposition =3D =5Bview convertPoint: view=5Fposition fromView: n= il=5D; > + remember=5Fmouse=5Fglyph (f, view=5Fposition.x, view=5Fposition.y, > &dpyinfo->last=5Fmouse=5Fglyph); > - NSTRACE=5FPOINT (=22position=22, position); > + NSTRACE=5FPOINT (=22view=5Fposition=22, view=5Fposition); > > if (bar=5Fwindow) *bar=5Fwindow =3D Qnil; > if (part) *part =3D scroll=5Fbar=5Fabove=5Fhandle; > > - if (x) XSETINT (*x, lrint (position.x)); > - if (y) XSETINT (*y, lrint (position.y)); > + if (x) XSETINT (*x, lrint (view=5Fposition.x)); > + if (y) XSETINT (*y, lrint (view=5Fposition.y)); > if (time) > *time =3D dpyinfo->last=5Fmouse=5Fmovement=5Ftime; > *fp =3D f; > -- > 2.21.0 > > > -- > Alan Third --5de7ab33_643c9869_1689 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Looks good to me (but haven=E2=80=99t tried). Thank= s for working on this=21
DR
On Dec 4, 2019, 07:44 -0500, Alan T= hird <alan=40idiocy.org>, wrote:
* = src/nsterm.m (ns=5Fmouse=5Fposition): Implement a search for the frame under the mouse pointer.
---
src/nsterm.m =7C 52 ++++++++++++++++++++++++++++++++++++++--------------<= br /> 1 file changed, 38 insertions(+), 14 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index 52a9830be8..71234ac783 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
=40=40 -2475,7 +2475,7 =40=40 so some key presses (TAB) are swallowed by = the system. */
-------------------------------------------------------------------------= - */
=7B
id view;
- NSPoint position;
+ NSPoint view=5Fposition;
Lisp=5FObject frame, tail;
struct frame *f;
struct ns=5Fdisplay=5Finfo *dpyinfo;
=40=40 -2498,31 +2498,55 =40=40 so some key presses (TAB) are swallowed b= y the system. */
X=46RAME (frame)->mouse=5Fmoved =3D 0;

dpyinfo->last=5Fmouse=5Fscroll=5Fbar =3D nil;
- f =3D dpyinfo->ns=5Ffocus=5Fframe =3F dpyinfo->ns=5Ffocus=5Fframe= : SELECTED=5F=46RAME ();
- if (dpyinfo->last=5Fmouse=5Fframe
- /* While dropping, use the last mouse frame only if there is no
- currently focused frame. */
- && (=21EQ (track=5Fmouse, Qdropping) =7C=7C =21f)
+
+=23ifdef NS=5FIMPL=5FCOCOA
+ /* =46ind the uppermost Emacs frame under the mouse pointer.
+
+ This doesn't work on GNUstep, although in recent versions there
+ is compatibility code that makes it a noop. */
+
+ NSPoint screen=5Fposition =3D =5BNSEvent mouseLocation=5D;
+ NSInteger window=5Fnumber =3D 0;
+ do
+ =7B
+ NSWindow *w;
+
+ window=5Fnumber =3D =5BNSWindow windowNumberAtPoint:screen=5Fposition + belowWindowWithWindowNumber:window=5Fnumber=5D;
+ w =3D =5BNSApp windowWithWindowNumber:window=5Fnumber=5D;
+
+ if (w && =5B=5Bw delegate=5D isKindOfClass:=5BEmacsView class=5D= =5D)
+ f =3D ((EmacsView *)=5Bw delegate=5D)->emacsframe;
+ =7D
+ while (window=5Fnumber > 0 && =21f);
+=23endif
+
+ if (=21f)
+ f =3D dpyinfo->ns=5Ffocus=5Fframe =3F dpyinfo->ns=5Ffocus=5Fframe= : SELECTED=5F=46RAME ();
+
+ /* While dropping, use the last mouse frame only if there is no
+ currently focused frame. */
+ if (=21f
+ && EQ (track=5Fmouse, Qdropping)
+ && dpyinfo->last=5Fmouse=5Fframe
&& =46RAME=5FLIVE=5FP (dpyinfo->last=5Fmouse=5Fframe))
f =3D dpyinfo->last=5Fmouse=5Fframe;
- else
- f =3D dpyinfo->ns=5Ffocus=5Fframe =3F dpyinfo->ns=5Ffocus=5Fframe= : SELECTED=5F=46RAME ();

if (f && =46RAME=5FNS=5FP (f))
=7B
view =3D =46RAME=5FNS=5FVIEW (f);

- position =3D =5B=5Bview window=5D mouseLocationOutsideOfEventStream=5D;=
- position =3D =5Bview convertPoint: position fromView: nil=5D;
- remember=5Fmouse=5Fglyph (f, position.x, position.y,
+ view=5Fposition =3D =5B=5Bview window=5D mouseLocationOutsideOfEventStr= eam=5D;
+ view=5Fposition =3D =5Bview convertPoint: view=5Fposition fromView: nil= =5D;
+ remember=5Fmouse=5Fglyph (f, view=5Fposition.x, view=5Fposition.y,
&dpyinfo->last=5Fmouse=5Fglyph);
- NSTRACE=5FPOINT (=22position=22, position);
+ NSTRACE=5FPOINT (=22view=5Fposition=22, view=5Fposition);

if (bar=5Fwindow) *bar=5Fwindow =3D Qnil;
if (part) *part =3D scroll=5Fbar=5Fabove=5Fhandle;

- if (x) XSETINT (*x, lrint (position.x));
- if (y) XSETINT (*y, lrint (position.y));
+ if (x) XSETINT (*x, lrint (view=5Fposition.x));
+ if (y) XSETINT (*y, lrint (view=5Fposition.y));
if (time)
*time =3D dpyinfo->last=5Fmouse=5Fmovement=5Ftime;
*fp =3D f;
--
2.21.0


--
Alan Third
--5de7ab33_643c9869_1689-- From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 15:55:24 2019 Received: (at 4892-done) by debbugs.gnu.org; 10 Dec 2019 20:55:24 +0000 Received: from localhost ([127.0.0.1]:56678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iemXU-000877-Eu for submit@debbugs.gnu.org; Tue, 10 Dec 2019 15:55:24 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:42748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iemXT-00086v-78 for 4892-done@debbugs.gnu.org; Tue, 10 Dec 2019 15:55:23 -0500 Received: by mail-wr1-f50.google.com with SMTP id q6so183564wro.9 for <4892-done@debbugs.gnu.org>; Tue, 10 Dec 2019 12:55:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=M9+HvJiQZKMw1De5xj4adF2pOKDz6EtqglcLle3FPWE=; b=adzT73aDCkjOecm7Pk+kZPN5a6CGusQjXPx1/Wk7SpCYp8xi+M7jW6V9HBCSHhUpt4 N7Z+urHlfKDbj0x+UUJOR8gbw3SeXhE3bWcQ8usSZ93aSAiebJocVZI8maMMx26vh8HL BDoKNL7xYbyySU8KHy2IsNOHNlMxHJZEQEpshXfNbG1M77IwCqibGrz91UZ/lJfQUqTY I6dQLpZ8S2MPidZrtaCYMze9udIMLghSo/Pcjrc/QO0Rb80f0fHrdS3xFeDhwc11KROV evhJL1X5lRyAHXq1MSvkxVmyF17PDEBN4M7vncoQwj7ylNrfiseDD3fq5cGoAezThnH+ 9OOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=M9+HvJiQZKMw1De5xj4adF2pOKDz6EtqglcLle3FPWE=; b=Wr077tasru3961BAEB5lwJyP3J9WBYFG3vimRqvgrtQ4B3czZhsTSx38c6u1h7WXlF DrOzt69vmD54AeoBtdyXDVKH7/xbvaKb72N7MsCfzTQTzhBW8lXu05k/s8m3196p01NU +4rEAJPKF+NMxWRR6kG/QIvlaMFz8/c6BDegAg08sRGoGqZNmI4YehdlymSEndw8kq5J 1nWUKXegyhJOoysP3OdJVjFSU9EY2oWEZAUVUccQIiUcUaWjIs+0c49uuXEL2Y3VFPL2 WQwFOsCp8nE7SpaA02n3dpm6TQCUklPP2AAoFUyZ+OodSz+VXKNq9ybUUC3hvNaewJ2V UYxA== X-Gm-Message-State: APjAAAU/uKuVNOMRheX0Zh29pt90SfA3Bi+WDKR9wQn/MqQwO8QCcxfF fmzRxaQlLkr0sV3AaDQymhA= X-Google-Smtp-Source: APXvYqwkmy3qGDb+RKtEYZ93VdBU7tepDkXYHhwjZKB8y5I/CCfQo8JqXXQYI36+6t9G9tKbcD4hbQ== X-Received: by 2002:adf:fe90:: with SMTP id l16mr5725015wrr.265.1576011317131; Tue, 10 Dec 2019 12:55:17 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-8586-a56f-eccc-754e.holly.idiocy.org. [2001:8b0:3f8:8129:8586:a56f:eccc:754e]) by smtp.gmail.com with ESMTPSA id b10sm4681946wrt.90.2019.12.10.12.55.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 12:55:16 -0800 (PST) Date: Tue, 10 Dec 2019 20:55:14 +0000 From: Alan Third To: David Reitter Subject: Re: bug#4892: [PATCH] Fix mouse-position on macOS (bug#4892) Message-ID: <20191210205514.GB61566@breton.holly.idiocy.org> References: <20191204124404.GA62687@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191204124404.GA62687@breton.holly.idiocy.org> X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 4892-done Cc: 4892-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On Wed, Dec 04, 2019 at 12:44:04PM +0000, Alan Third wrote: > * src/nsterm.m (ns_mouse_position): Implement a search for the frame > under the mouse pointer. I’ve pushed to master. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 16:04:21 2019 Received: (at 4892-done) by debbugs.gnu.org; 10 Dec 2019 21:04:21 +0000 Received: from localhost ([127.0.0.1]:56696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iemg9-0008M0-3b for submit@debbugs.gnu.org; Tue, 10 Dec 2019 16:04:21 -0500 Received: from mail-qk1-f180.google.com ([209.85.222.180]:41264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iemg7-0008Ll-Qp for 4892-done@debbugs.gnu.org; Tue, 10 Dec 2019 16:04:20 -0500 Received: by mail-qk1-f180.google.com with SMTP id l124so5771361qkf.8 for <4892-done@debbugs.gnu.org>; Tue, 10 Dec 2019 13:04:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=eKguKWPK22GmEqAEDIs7mbkWs16dHrxCzuv4TKI6rK8=; b=ENBd/MQ94nHQxwEnt8D3ZUy8CS/2cOeDTCTPHS7MP9GRIj6RznrYlOAXMWSp5/JkyU odNR1skv5MJ4Qdoh975BjxwHydChTqNz5XzgE/prqzAeDvkIMeMiuSODan3msLIWY+aX uztmXIKrYZvBoHT6CZa1e3uRU6H+uXrRDX2SVfAQ36R3Fyb8hSc8mHwOZLKumWcRBU9n YiPoXnCesbKjOIxmi/S7ENZRy6YS6pwOEuUP4KIHYRYaMZXe5qSlObi9jTK90fwF9R6/ CyxqPCviRXkGfFjUOHgmlGm8U5gAS3BEjf9aUtGu+nvA4IQpV0bq0ZZS9GwvN0ySeGjB 2uaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=eKguKWPK22GmEqAEDIs7mbkWs16dHrxCzuv4TKI6rK8=; b=k4y7oq25AhiMe9mGrPuFcJNS6yjy5NGtfZz6yBirqoqreW5g3X+kW2hnMbe7cGJy8o qYi/BXg3MQwVFOaeadyV+b1A/CdJHOxD3WEe8eoeLP0nkGn8yLW0hHp40VOGXGUvwD4h 1sIOQbJIEZaTUrb9yGxHPYW0U/U+KaJFXv+rz3sTA9tUYsBbuXg7d5C0RYrYl5nV6yX1 /ebjV+qQ6sPQTAtBvjJmHttNywhdgMrBHRqwdtOZNFwNG9mYZuEfhbqG0+Mf2V/GZrqq ydgw4Ll8c1BDfr8SGtbk/Di2T0W1F4apmyADiFm4HqLuwgCd7z49jN2m/rH+Dde5Bf1g D8mQ== X-Gm-Message-State: APjAAAXl2CRx/fPmV2kV/c5kTQ/sVTrkJ6t58TmW6BUQuc6akp949Dt9 /+wbJE45RpSs/btuzD9ne+FotTB2CTn+s70= X-Google-Smtp-Source: APXvYqz/0iG7Z0FvRaxA7o0RxjGDkrOm/FNPea5FjrZmv0A7CC3dHlSSAyVr8JIymvXnyzZH7tYo1w== X-Received: by 2002:a37:8ac4:: with SMTP id m187mr35527461qkd.247.1576011853803; Tue, 10 Dec 2019 13:04:13 -0800 (PST) Received: from [2620:0:1003:fd00:c000:d896:200:0] ([2620:0:1003:fd00:d027:463c:2967:f92]) by smtp.gmail.com with ESMTPSA id s26sm1334006qkj.24.2019.12.10.13.04.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Dec 2019 13:04:12 -0800 (PST) Date: Tue, 10 Dec 2019 16:03:56 -0500 From: David Reitter To: Alan Third Message-ID: In-Reply-To: <20191210205514.GB61566@breton.holly.idiocy.org> References: <20191204124404.GA62687@breton.holly.idiocy.org> <20191210205514.GB61566@breton.holly.idiocy.org> Subject: Re: bug#4892: [PATCH] Fix mouse-position on macOS (bug#4892) X-Readdle-Message-ID: da2ea0e3-2dc5-49ae-8f87-a2fc3c3e994f@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5df0084b_6b8b4567_1841" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 4892-done Cc: 4892-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5df0084b_6b8b4567_1841 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Super. Thank you=21 On Dec 10, 2019, 15:55 -0500, Alan Third , wrote: > On Wed, Dec 04, 2019 at 12:44:04PM +0000, Alan Third wrote: > > * src/nsterm.m (ns=5Fmouse=5Fposition): Implement a search for the fr= ame > > under the mouse pointer. > > I=E2=80=99ve pushed to master. > -- > Alan Third --5df0084b_6b8b4567_1841 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Super. Thank you=21
On Dec 10, 2019, 15:55 -0500, Alan = Third <alan=40idiocy.org>, wrote:
On= Wed, Dec 04, 2019 at 12:44:04PM +0000, Alan Third wrote:
* = src/nsterm.m (ns=5Fmouse=5Fposition): Implement a search for the frame under the mouse pointer.

I=E2=80=99ve pushed to master.
--
Alan Third
--5df0084b_6b8b4567_1841-- From unknown Sat Aug 16 15:57:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 08 Jan 2020 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator