From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#28620: Interact directly on Emacs bug#28620: mouse drag event records wrong release window Date: Tue, 3 Oct 2017 14:21:43 -0400 Message-ID: References: <83wp4e3nvx.fsf@gnu.org> <8360bx340d.fsf@gnu.org> <8360bw19es.fsf@gnu.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1137b05403ea3c055aa892a9" X-Trace: blaine.gmane.org 1507054991 7408 195.159.176.226 (3 Oct 2017 18:23:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 18:23:11 +0000 (UTC) To: 28620@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 03 20:23:06 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 1dzRqT-0001Mk-P6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Oct 2017 20:23:06 +0200 Original-Received: from localhost ([::1]:59799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzRqb-0007CF-7Y for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Oct 2017 14:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzRqT-0007C4-O0 for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2017 14:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzRqQ-0002by-HN for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2017 14:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38055) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzRqQ-0002bM-DG for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2017 14:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzRqQ-0004do-66 for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2017 14:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Oct 2017 18:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28620 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28620-submit@debbugs.gnu.org id=B28620.150705494517776 (code B ref 28620); Tue, 03 Oct 2017 18:23:02 +0000 Original-Received: (at 28620) by debbugs.gnu.org; 3 Oct 2017 18:22:25 +0000 Original-Received: from localhost ([127.0.0.1]:46736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzRpp-0004ce-93 for submit@debbugs.gnu.org; Tue, 03 Oct 2017 14:22:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzRpn-0004cP-M2 for 28620@debbugs.gnu.org; Tue, 03 Oct 2017 14:22:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzRpf-0007N7-7M for 28620@debbugs.gnu.org; Tue, 03 Oct 2017 14:22:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzRpf-0007Ms-45 for 28620@debbugs.gnu.org; Tue, 03 Oct 2017 14:22:15 -0400 Original-Received: from mail-qt0-f178.google.com ([209.85.216.178]:52993) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dzRpe-00031w-SX for 28620@debbugs.gnu.org; Tue, 03 Oct 2017 14:22:15 -0400 Original-Received: by mail-qt0-f178.google.com with SMTP id o52so14641027qtc.9 for <28620@debbugs.gnu.org>; Tue, 03 Oct 2017 11:22:14 -0700 (PDT) X-Gm-Message-State: AMCzsaWS7JcrTMwnQ/ps6rWVRkMu4vm/0hKpKHH6obwKHRjNlrLE3Iit 713L/Z2N3cT8Muf7K/L4lMzI1XBHwoCyIF2Wsts= X-Google-Smtp-Source: AOwi7QC2rhJqDo5vahh4K98cqVtZzNDTgFonrH1d90s7n5iIo/ND4xA12WOm/LrP3+XebtaPqP0kw38IsdYRLKwlZGo= X-Received: by 10.200.54.3 with SMTP id m3mr842794qtb.197.1507054934286; Tue, 03 Oct 2017 11:22:14 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Tue, 3 Oct 2017 11:21:43 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:137853 Archived-At: --001a1137b05403ea3c055aa892a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Using the latest Emacs26 built from master on MacOS Sierra using the macOS window system, I see the following if I have two frames: f1 and f2. I start with the mouse within a window of f1 and selected frame of f1; (mouse-position) also reports f1. I click mouse-1 in an Emacs window of f2 and leave it there. (selected-frame) is now f2 macOS window manager highlights f2 as active window (frame-focus) returns nil (mouse-position) reports a frame of f1 <<< WRONG I click mouse-1 again in the same Emacs window of f2. (selected-frame) is still f2 macOS window manager highlights f2 as active window (frame-focus) returns nil (mouse-position) now reports a frame of f2 This happens consistently in testing. This must be a bug in mouse-position for macOS, right? Why would (mouse-position) still report f1 when f2 is the selected frame? Maybe this is why I am seeing the wrong frame on drag releases too. If anyone else could confirm this and whether it happens on other window systems that use a mouse click to select windows, that would be helpful. Bob =E2=80=8B=E2=80=8B =E2=80=8B=E2=80=8B --001a1137b05403ea3c055aa892a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Using the latest Emacs26 built from master on MacOS Sierra usi= ng the macOS window system, I see the following if I have two frames: f1 an= d f2.

I start with the mouse within a window of f1 and selected fram= e of f1; (mouse-position) also reports f1.

I click mouse-1 in an Ema= cs window of f2 and leave it there.
=C2=A0 (selected-frame) is now f2
=C2= =A0 macOS window manager highlights f2 as active window
=C2=A0 (frame-focu= s) returns nil
=C2=A0 (mouse-position) reports a frame of f1=C2=A0 =C2=A0 = =C2=A0 =C2=A0<<< WRONG


I click mouse-1 again in the s= ame Emacs window of f2.
=C2=A0 (selected-frame) is still f2
=C2=A0 macOS = window manager highlights f2 as active window
=C2=A0 (frame-focus) returns= nil
=C2=A0 (mouse-position) now reports a frame of f2

This happens= consistently in testing.=C2=A0 This must be a bug in mouse-position for ma= cOS, right?=C2=A0 Why would (mouse-position) still report f1 when f2 is the= selected frame?=C2=A0 Maybe this is why I am seeing the wrong frame on dra= g releases too.

If anyone else could confirm this and whether it hap= pens on other window systems that use a mouse click to select windows, that= would be helpful.

Bob

=E2=80=8B= =E2=80=8B
=E2=80=8B=E2=80=8B


--001a1137b05403ea3c055aa892a9--