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 20:38:38 -0400 Message-ID: References: <8360bw19es.fsf@gnu.org> <20171003224017.GA51637@breton.holly.idiocy.org> <20171004163048.GA52414@breton.holly.idiocy.org> <20171004185900.GA52514@breton.holly.idiocy.org> <20171004220901.GA52814@breton.holly.idiocy.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045d6da0c6666b055ac1f3c8" X-Trace: blaine.gmane.org 1507164016 16628 195.159.176.226 (5 Oct 2017 00:40:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 00:40:16 +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 Thu Oct 05 02:40:09 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 1dzuCs-0002ub-6C for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Oct 2017 02:40:06 +0200 Original-Received: from localhost ([::1]:37299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzuCy-0005IP-1s for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 20:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzuCr-0005Hi-PS for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 20:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzuCn-0002kK-Pw for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 20:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzuCn-0002jr-Nd for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 20:40:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzuCn-0003iC-Hr for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 20:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Oct 2017 00:40:01 +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.150716396014203 (code B ref 28620); Thu, 05 Oct 2017 00:40:01 +0000 Original-Received: (at 28620) by debbugs.gnu.org; 5 Oct 2017 00:39:20 +0000 Original-Received: from localhost ([127.0.0.1]:49509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzuC8-0003h1-4w for submit@debbugs.gnu.org; Wed, 04 Oct 2017 20:39:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzuC6-0003gn-UL for 28620@debbugs.gnu.org; Wed, 04 Oct 2017 20:39:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzuBx-0002Yw-Ct for 28620@debbugs.gnu.org; Wed, 04 Oct 2017 20:39:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzuBx-0002Yo-A6 for 28620@debbugs.gnu.org; Wed, 04 Oct 2017 20:39:09 -0400 Original-Received: from mail-qt0-f177.google.com ([209.85.216.177]:53930) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dzuBx-0003oE-1J for 28620@debbugs.gnu.org; Wed, 04 Oct 2017 20:39:09 -0400 Original-Received: by mail-qt0-f177.google.com with SMTP id 47so22561400qts.10 for <28620@debbugs.gnu.org>; Wed, 04 Oct 2017 17:39:08 -0700 (PDT) X-Gm-Message-State: AMCzsaVjHMNxnHgaly61RHzi4EX5W4A0+OOkVeSbpNdPRte1kehbEIVc 2TBcYtMVRqTArnurblYwMmhRAJrJyEbgc/rxRVU= X-Google-Smtp-Source: AOwi7QBfw4XfVjN82yckSkORz3XYVZdTrdjBX+7K7mKrmaeF9WpsEP+psAm5+sSGJiPFHYFvgZefadFCbkHKyrYkj14= X-Received: by 10.200.26.65 with SMTP id q1mr29618373qtk.186.1507163948605; Wed, 04 Oct 2017 17:39:08 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Wed, 4 Oct 2017 17:38:38 -0700 (PDT) In-Reply-To: <20171004220901.GA52814@breton.holly.idiocy.org> 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:137930 Archived-At: --f403045d6da0c6666b055ac1f3c8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 4, 2017 at 6:09 PM, Alan Third wrote: > > Yes. You can=E2=80=99t modify emacsframe because it=E2=80=99s an instance= variable. > You=E2=80=99ll need to modify whatever is using it to set the frame in th= e > emacs event. > > So, assuming the code you=E2=80=99re modifying is calling EV_TRAILER, for= now, > replace the call to EV_TRAILER with it=E2=80=99s contents: > > XSETFRAME (emacs_event->frame_or_window, emacsframe); > EV_TRAILER2 (e); > > and work from there. > =E2=80=8BStill doesn't seem to work if that code is used at the end of mous= eDown (called by mouseUp). Could you test any of your ideas? It would probably speed the process up if you have a bit of time. Bob --f403045d6da0c6666b055ac1f3c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Oct 4, 20= 17 at 6:09 PM, Alan Third <ala= n@idiocy.org> wr= ote:
=

Yes. You can=E2=80=99t modify emacsframe because it=E2=80=99s an ins= tance variable.
You=E2=80=99ll need to modify whatever is using it to set the frame in the<= br> emacs event.

So, assuming the code you=E2=80=99re modifying is calling EV_TRAILER, for n= ow,
replace the call to EV_TRAILER with it=E2=80=99s contents:

=C2=A0 =C2=A0 XSETFRAME (emacs_event->frame_or_window, emacsframe);
=C2=A0 =C2=A0 EV_TRAILER2 (e);

and work from there.

=E2=80=8BStill doesn't = seem to work if that code is used at the end of mouseDown (called by mouseU= p).
Could you test any of your ideas?=C2=A0 It would probably speed the pr= ocess up if you have a bit of time.

Bob
--f403045d6da0c6666b055ac1f3c8--