From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#19988: 25.0.50; Drag events ending in different frame Date: Mon, 09 Mar 2015 08:53:43 +0100 Message-ID: <54FD5187.1070902@swipnet.se> References: <87k2yycfwh.fsf@gnu.org> <54F72082.8080709@gmx.at> <87a8zs4g9c.fsf@gnu.org> <54F80E72.3040609@gmx.at> <54F9F836.7010103@gmx.at> <54FA1C9E.9040806@gmx.at> <54FAC7E5.1020604@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1425887663 22727 80.91.229.3 (9 Mar 2015 07:54:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Mar 2015 07:54:23 +0000 (UTC) Cc: 19988@debbugs.gnu.org, Tassilo Horn To: Stefan Monnier , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 09 08:54:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YUsVu-0004n6-HI for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Mar 2015 08:54:10 +0100 Original-Received: from localhost ([::1]:41914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUsVt-0002yF-Tm for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Mar 2015 03:54:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUsVp-0002y8-RC for bug-gnu-emacs@gnu.org; Mon, 09 Mar 2015 03:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUsVm-0003EI-K1 for bug-gnu-emacs@gnu.org; Mon, 09 Mar 2015 03:54:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUsVm-0003EE-Gr for bug-gnu-emacs@gnu.org; Mon, 09 Mar 2015 03:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YUsVm-0000Hw-8r for bug-gnu-emacs@gnu.org; Mon, 09 Mar 2015 03:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jan D." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Mar 2015 07:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19988 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19988-submit@debbugs.gnu.org id=B19988.14258876361096 (code B ref 19988); Mon, 09 Mar 2015 07:54:02 +0000 Original-Received: (at 19988) by debbugs.gnu.org; 9 Mar 2015 07:53:56 +0000 Original-Received: from localhost ([127.0.0.1]:40081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUsVf-0000Hb-WE for submit@debbugs.gnu.org; Mon, 09 Mar 2015 03:53:56 -0400 Original-Received: from mailfe08.swip.net ([212.247.154.225]:52323 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUsVc-0000HI-Jp for 19988@debbugs.gnu.org; Mon, 09 Mar 2015 03:53:53 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 579734494; Mon, 09 Mar 2015 08:53:45 +0100 Original-Received: from jdvpro.hq.ismobile.com (unknown [176.57.193.190]) (Authenticated sender: jhd) by hosdjarv.se (Postfix) with ESMTPSA id 3306A1A01B4; Mon, 9 Mar 2015 07:53:45 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100317 Archived-At: Stefan Monnier skrev den 2015-03-09 05:34: >>> If one of the two is the top window (i.e. the one that's actually >>> visible), then we should use that one, >> Detecting whether "one of the two is the top window (i.e. the one that's >> actually visible)" requires access to the Z order of windows. > > Not exactly: since this should be done by the C code, it can ask the > window-system, which is the "current window under the mouse pointer". > The result depends on Z ordering, but Emacs doesn't need to know that > Z ordering. > >> The event structure can only contain what we put into it. Which window >> would you put into this structure after you leave the frame containing >> the window where the start event occurred? > > The GUI window that's under the mouse pointer (according to the > window-system). > XQueryPointer gives you the window. But for drag-and-drop (depending on what protocol is being used), you also need to check if that window supports drag-and-drop. Jan D.