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: Thu, 19 Oct 2017 14:32:31 -0400 Message-ID: References: <8360bw19es.fsf@gnu.org> <83vajwytja.fsf@gnu.org> <83poa4yqyq.fsf@gnu.org> <83376qouoj.fsf@gnu.org> <59DF2260.5030204@gmx.at> <59E1CC55.2090400@gmx.at> <59E32CFA.5080405@gmx.at> <59E5C5FE.2050807@gmx.at> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113e205214511b055bea96f5" X-Trace: blaine.gmane.org 1508438077 26827 195.159.176.226 (19 Oct 2017 18:34:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2017 18:34:37 +0000 (UTC) Cc: Alan Third , 28620@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 19 20:34:30 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 1e5Fdw-0003KZ-Jm for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Oct 2017 20:34:08 +0200 Original-Received: from localhost ([::1]:50791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Fe2-0007z9-80 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Oct 2017 14:34:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Fdv-0007yo-QX for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 14:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5Fdp-0003AW-SJ for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 14:34:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5Fdp-0003AP-Pd for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 14:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e5Fdp-0002Nf-KG for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 14:34: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, 19 Oct 2017 18:34: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.15084379939088 (code B ref 28620); Thu, 19 Oct 2017 18:34:01 +0000 Original-Received: (at 28620) by debbugs.gnu.org; 19 Oct 2017 18:33:13 +0000 Original-Received: from localhost ([127.0.0.1]:50701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Fd2-0002MW-TA for submit@debbugs.gnu.org; Thu, 19 Oct 2017 14:33:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Fd1-0002MG-BF for 28620@debbugs.gnu.org; Thu, 19 Oct 2017 14:33:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5Fcs-0002GG-TP for 28620@debbugs.gnu.org; Thu, 19 Oct 2017 14:33:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Fcs-0002Fs-Pf for 28620@debbugs.gnu.org; Thu, 19 Oct 2017 14:33:02 -0400 Original-Received: from mail-qt0-f176.google.com ([209.85.216.176]:44243) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1e5Fcs-0002UU-FI for 28620@debbugs.gnu.org; Thu, 19 Oct 2017 14:33:02 -0400 Original-Received: by mail-qt0-f176.google.com with SMTP id 8so15647139qtv.1 for <28620@debbugs.gnu.org>; Thu, 19 Oct 2017 11:33:02 -0700 (PDT) X-Gm-Message-State: AMCzsaWxf+ucioBe5ZzSoT9oiyRewKjP6MdjCotnabt0ft6lFPhp5yk5 LKAEEIBszGjXg5O5aeQbP1Rtga2ozRUHW01/7wc= X-Google-Smtp-Source: ABhQp+ThO37hFVVtRizJTSQPyzRquFVXxM8KKP+9zzm+wbB6Pf+Praf8PoiYE5vwwhroouoZnWWmGmBl8osn2Bt0gkU= X-Received: by 10.200.56.52 with SMTP id q49mr3496696qtb.309.1508437981940; Thu, 19 Oct 2017 11:33:01 -0700 (PDT) Original-Received: by 10.200.12.74 with HTTP; Thu, 19 Oct 2017 11:32:31 -0700 (PDT) In-Reply-To: <59E5C5FE.2050807@gmx.at> 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:138723 Archived-At: --001a113e205214511b055bea96f5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Oct 17, 2017 at 4:57 AM, martin rudalics wrote: > > =E2=80=8BYes, you would need to follow a common drag-and-drop protocol. > > I don't understand why that is an issue if that is what you want > > to do. > > Wasn't that something _you_ wanted to do? If not then we can obviously > ignore it. =E2=80=8BYes, I would like Emacs drag-and-drop to work across Emacs frames = and potentially even across other applications using whatever protocol is common to the platform in use. > > >> At least for top-level windows. This will work as long a child window= s > >> =E2=80=8Bare fully contained by their parents which IIUC is not necess= arily true > >> =E2=80=8B > =E2=80=8Bf=E2=80=8B > or macOS systems. > > > > =E2=80=8BCould you give a concrete example of where this might be a pro= blem > > so I could test code against it? > > Hardly. Child windows are a separate problem because, for example, on X > you currently cannot drop files on them - the drop goes to the parent > window instead. =E2=80=8BWe would certainly live within the constraints of the drag-and-dro= p protocol. =E2=80=8B > > > >>> and (2) a function would be needed to get the attributes of > >> those windows. > > > > =E2=80=8BI have figured that part out from the macOS APIs. > > Window attributes are a problem on X. You will learn about that as soon > as you try to adapt your code for it. =E2=80=8BOk. It would be more helpful if you explained which problems you = feel are relevant to the discussion at hand. =E2=80=8B Bob --001a113e205214511b055bea96f5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Oct 17, 2= 017 at 4:57 AM, martin rudalics <rudalics@gmx.at> wrote:
> =E2=80=8BYes, yo= u would need to follow a common drag-and-drop protocol.
> I don't understand why that is an issue if that is what you want > to do.

Wasn't that something _you_ wanted to do?=C2=A0 If not then we can obvi= ously
ignore it.

=E2=80=8BYes, I would like Emacs drag-and= -drop to work across Emacs frames and potentially even across other applica= tions using whatever protocol is common to the platform in use.

=


>> At least for top-level windows.=C2=A0 This will work as long a chi= ld windows
>> =E2=80=8Bare fully contained by their parents which IIUC is not ne= cessarily true
>> =E2=80=8B
=E2=80=8Bf=E2=80=8B
or macOS systems.
>
> =E2=80=8BCould you give a concrete example of where this might be a pr= oblem
> so I could test code against it?

Hardly.=C2=A0 Child windows are a separate problem because, for example, on= X
you currently cannot drop files on them - the drop goes to the parent
window instead.

=E2=80=8BWe would certainly live wit= hin the constraints of the drag-and-drop protocol.
=E2=80=8B


>>> and (2) a function would be needed to get the attributes of >>=C2=A0 =C2=A0those windows.
>
> =E2=80=8BI have figured that part out from the macOS APIs.

Window attributes are a problem on X.=C2=A0 You will learn about that as so= on
as you try to adapt your code for it.

=E2=80=8BOk.= =C2=A0 It would be more helpful if you explained which problems you feel ar= e relevant to the discussion at hand.
=E2=80=8B
Bob

--001a113e205214511b055bea96f5--