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: Wed, 4 Oct 2017 16:11:44 -0400 Message-ID: References: <8360bx340d.fsf@gnu.org> <8360bw19es.fsf@gnu.org> <20171003224017.GA51637@breton.holly.idiocy.org> <20171004163048.GA52414@breton.holly.idiocy.org> <20171004185900.GA52514@breton.holly.idiocy.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045d6da046b1a2055abe3998" X-Trace: blaine.gmane.org 1507147990 8658 195.159.176.226 (4 Oct 2017 20:13:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2017 20:13:10 +0000 (UTC) Cc: 28620@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 04 22:13:05 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 1dzq2S-0001Tl-Vo for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 22:13:05 +0200 Original-Received: from localhost ([::1]:36689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzq2Z-0000Ev-SW for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 16:13:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzq2T-0000En-LR for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 16:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzq2Q-0008Eg-FQ for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 16:13:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40597) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzq2Q-0008EU-C3 for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 16:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzq2Q-0005TS-6s for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 16:13: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: Wed, 04 Oct 2017 20:13: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.150714794620992 (code B ref 28620); Wed, 04 Oct 2017 20:13:02 +0000 Original-Received: (at 28620) by debbugs.gnu.org; 4 Oct 2017 20:12:26 +0000 Original-Received: from localhost ([127.0.0.1]:49278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzq1p-0005SW-UR for submit@debbugs.gnu.org; Wed, 04 Oct 2017 16:12:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzq1n-0005SH-Us for 28620@debbugs.gnu.org; Wed, 04 Oct 2017 16:12:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzq1f-00079Y-NW for 28620@debbugs.gnu.org; Wed, 04 Oct 2017 16:12:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzq1f-00079B-KM for 28620@debbugs.gnu.org; Wed, 04 Oct 2017 16:12:15 -0400 Original-Received: from mail-qt0-f170.google.com ([209.85.216.170]:45621) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dzq1f-0008Jh-6E for 28620@debbugs.gnu.org; Wed, 04 Oct 2017 16:12:15 -0400 Original-Received: by mail-qt0-f170.google.com with SMTP id k1so10564423qti.2 for <28620@debbugs.gnu.org>; Wed, 04 Oct 2017 13:12:15 -0700 (PDT) X-Gm-Message-State: AMCzsaUzBwX3cjAs6GxQFLkMjaFJlwXhL8UV9J/opVdKmAcRmOep5tv4 q9Rrt3u4AwRRufFgKQy0pbd6iT6tZUmZwYE37pM= X-Google-Smtp-Source: AOwi7QBnaDobC9TdHzJQoIuwAi1kIMhiJDoBHOWRiK+jdZAVB7v4UZwuJK9LzNBexVQmGSnCXx1vMqwU4Vvzxx7tzyA= X-Received: by 10.200.26.65 with SMTP id q1mr28751245qtk.186.1507147934772; Wed, 04 Oct 2017 13:12:14 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Wed, 4 Oct 2017 13:11:44 -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:137921 Archived-At: --f403045d6da046b1a2055abe3998 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 4, 2017 at 3:30 PM, Robert Weiner wrote: > Hi Alan: > >> >> =E2=80=8B=E2=80=8B >> It looks like there=E2=80=99s maybe a neater way to get the current fram= e >> =E2=80=8B=E2=80=8B >> under the mouse... >> =E2=80=8B=E2=80=8B >> >> =E2=80=8B=E2=80=8B >> Lisp_Object frame =3D Qnil; >> =E2=80=8B=E2=80=8B >> NSWindow *w =3D [NSApp windowWithWindowNumber: >> =E2=80=8B=E2=80=8B >> [NSWindow windowNumberAtPoint:[NSEvent >> mouseLocation] >> =E2=80=8B=E2=80=8B >> belowWindowWithWindowNumber:0]]; >> =E2=80=8B=E2=80=8B >> if (w !=3D nil) >> =E2=80=8B=E2=80=8B >> XSETFRAME (frame, ((EmacsView *)[w delegate])->emacsframe); >> > =E2=80=8BAs is, this didn't seem to have any effect. Bob =E2=80=8B --f403045d6da046b1a2055abe3998 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Oct 4, 20= 17 at 3:30 PM, Robert Weiner <rsw@= gnu.org> wrote:<= /span>
Hi Alan:
=
=E2=80=8B=E2= =80=8B
It looks like there=E2=80=99s maybe a neater way to get the cur= rent frame
=E2=80=8B=E2= =80=8B
under the mouse...
=E2=80=8B=E2= =80=8B

=E2=80=8B=E2= =80=8B
=C2=A0 =C2=A0 Lisp_Object frame =3D Qnil;
=E2=80=8B=E2= =80=8B
=C2=A0 =C2=A0 NSWindow *w =3D [NSApp windowWithWindowNumber:
=E2=80=8B=E2= =80=8B
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0[NSWindow windowNumberAtPoint:[NSEvent mouseLoca= tion]
=E2=80=8B=E2= =80=8B
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0belowWindowWithWindowNumber:0]];
=E2=80=8B=E2= =80=8B
=C2=A0 =C2=A0 if (w !=3D nil)
=E2=80=8B=E2= =80=8B
=C2=A0 =C2=A0 =C2=A0 XSETFRAME (frame, ((EmacsView *)[w delegat= e])->emacsframe);
=

=E2=80=8BAs is, this didn't seem to have any effect.

= Bob
=E2=80=8B
--f403045d6da046b1a2055abe3998--