From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#28620: Interact directly on Emacs bug#28620: mouse drag event records wrong release window Date: Tue, 17 Oct 2017 10:57:34 +0200 Message-ID: <59E5C5FE.2050807@gmx.at> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1508230771 29801 195.159.176.226 (17 Oct 2017 08:59:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2017 08:59:31 +0000 (UTC) Cc: Alan Third , 28620@debbugs.gnu.org To: rswgnu@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 17 10:59:28 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 1e4NiR-0005RO-Ix for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 10:59:11 +0200 Original-Received: from localhost ([::1]:37273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4NiZ-0004ah-4B for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 04:59:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4NiM-0004ZD-UB for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 04:59:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4NiI-0000t6-Vr for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 04:59:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36180) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4NiI-0000t0-Rz for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 04:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4NiI-0001bH-I4 for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 04:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Oct 2017 08:59: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.15082306826051 (code B ref 28620); Tue, 17 Oct 2017 08:59:02 +0000 Original-Received: (at 28620) by debbugs.gnu.org; 17 Oct 2017 08:58:02 +0000 Original-Received: from localhost ([127.0.0.1]:44857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4NhK-0001ZR-2F for submit@debbugs.gnu.org; Tue, 17 Oct 2017 04:58:02 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:61545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4NhI-0001Z6-QR for 28620@debbugs.gnu.org; Tue, 17 Oct 2017 04:58:01 -0400 Original-Received: from [192.168.1.100] ([46.125.249.51]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MaaOf-1doeGF0yt7-00K6m7; Tue, 17 Oct 2017 10:57:42 +0200 In-Reply-To: X-Provags-ID: V03:K0:dHgL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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:138596 Archived-At: > =E2=80=8BYes, you would need to follow a common drag-and-drop protocol= =2E > 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. > For programmatic purposes when Emacs receives a mouse button > drag release event, we only care about whether the topmost > window-system window at the point of release is an Emacs frame > or not. If at that point, it is occluded by another window, > we don't care how transparent that window is and whether the > Emacs frame can be "seen" but only whether it is logically > the window clicked upon. Again, even if it is not, we can > process the event as if it were *if we so choose* but having > the choice is the key issue here. So I warned here about possible problems with "visibility" once and will drop this issue. >> At least for top-level windows. This will work as long a child windo= ws >> =E2=80=8B=E2=80=8B >> are fully contained by their parents which IIUC is not necessarily tr= ue >> =E2=80=8B=E2=80=8B >> for 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. 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. >>> and (2) a function would be needed to get the attributes of >> =E2=80=8B >> =E2=80=8B=E2=80=8B >> those windows. >> =E2=80=8B=E2=80=8B >> =E2=80=8B=E2=80=8B >> =E2=80=8B=E2=80=8B >> =E2=80=8B=E2=80=8B >> =E2=80=8B=E2=80=8B >> =E2=80=8B=E2=80=8B >> =E2=80=8B=E2=80=8B >> =E2=80=8B=E2=80=8B >> > > =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. martin