From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#4892: compute_motion, mouse_position Date: Mon, 02 Dec 2019 13:42:55 +0000 Message-ID: References: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="119884"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) Cc: 4892@debbugs.gnu.org To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 02 14:44:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iblzp-000UyL-Aa for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Dec 2019 14:44:13 +0100 Original-Received: from localhost ([::1]:35960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iblzn-00075s-Tk for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Dec 2019 08:44:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60163) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iblzf-00072G-AD for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 08:44:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iblze-0001b7-8P for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 08:44:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iblze-0001b0-2N for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 08:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iblzd-0004Vp-W3 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 08:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2019 13:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4892 X-GNU-PR-Package: emacs Original-Received: via spool by 4892-submit@debbugs.gnu.org id=B4892.157529419317278 (code B ref 4892); Mon, 02 Dec 2019 13:44:01 +0000 Original-Received: (at 4892) by debbugs.gnu.org; 2 Dec 2019 13:43:13 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@gmail.com> (David Reitter's message of "Mon, 9 Nov 2009 12:10:17 -0500") 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: 209.51.188.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:172766 Archived-At: 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