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: Thu, 12 Oct 2017 10:05:52 +0200 Message-ID: <59DF2260.5030204@gmx.at> References: <83wp4e3nvx.fsf@gnu.org> <8360bx340d.fsf@gnu.org> <8360bw19es.fsf@gnu.org> <83vajwytja.fsf@gnu.org> <83poa4yqyq.fsf@gnu.org> <83376qouoj.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1507795640 19017 195.159.176.226 (12 Oct 2017 08:07:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 08:07:20 +0000 (UTC) To: rswgnu@gmail.com, Eli Zaretskii , Alan Third , 28620@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 10:07:13 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 1e2YWK-0003kP-M8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 10:07:08 +0200 Original-Received: from localhost ([::1]:44230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2YWS-0004Uh-6u for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 04:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2YWG-0004S9-3v for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 04:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2YWE-0001zN-30 for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 04:07:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2YWD-0001zC-Uu for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 04:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2YWD-0005ct-Op for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 04:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2017 08:07: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.150779558321575 (code B ref 28620); Thu, 12 Oct 2017 08:07:01 +0000 Original-Received: (at 28620) by debbugs.gnu.org; 12 Oct 2017 08:06:23 +0000 Original-Received: from localhost ([127.0.0.1]:34828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2YVb-0005bv-4M for submit@debbugs.gnu.org; Thu, 12 Oct 2017 04:06:23 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2YVZ-0005bh-0z for 28620@debbugs.gnu.org; Thu, 12 Oct 2017 04:06:21 -0400 Original-Received: from [192.168.1.100] ([46.125.250.116]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MHoWj-1dyzjN0JJd-003eCA; Thu, 12 Oct 2017 10:06:04 +0200 In-Reply-To: X-Provags-ID: V03:K0:svhNR9CoxT8yHB5Tg+G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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:138252 Archived-At: > So if I have 2 frames, f1 and f2, and a Chrome web browser window that is > atop f2, then if I drag from f1 into Chrome above f2, my drag release code > reports that the release window is in f2 rather than nil, as it should be. > I am on macOS which uses click to focus, so Emacs still gets the release > event since Chrome has not been selected with a click. I would call this a feature: f2 is probably the one meaningful target of your operation at that screen position. > Is there any way to deal with external window z-order layering such that > one can tell within Emacs whether the topmost OS-level window at an > absolute mouse position is an Emacs frame or not? Not really. Compositing window managers on X no more allow to track the visibility of windows reliably. So while we can discern the visibility of our own (window manager) windows based on what we store in their asscociated frames' 'visible' slots, we can't do that for windows of other applications. And processing whatever else XGetWindowAttributes returns for another application's window might not be trivial either. It should be possible to do what you want on Windows (where the debugger also notifies you when an Emacs frame is obscured) though. martin