From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19988: 25.0.50; Drag events ending in different frame Date: Tue, 03 Mar 2015 22:27:31 +0200 Message-ID: <83r3t5q11o.fsf@gnu.org> References: <87k2yycfwh.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425414505 2215 80.91.229.3 (3 Mar 2015 20:28:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2015 20:28:25 +0000 (UTC) Cc: 19988@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 21:28:12 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 1YStQJ-00029d-Dt for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 21:28:11 +0100 Original-Received: from localhost ([::1]:40745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YStQI-0007be-Tj for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 15:28:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YStQF-0007YV-Ee for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 15:28:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YStQA-0004AO-A1 for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 15:28:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YStQA-0004AK-7A for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 15:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YStQ9-0000uS-Ng for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 15:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Mar 2015 20:28:01 +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.14254144673470 (code B ref 19988); Tue, 03 Mar 2015 20:28:01 +0000 Original-Received: (at 19988) by debbugs.gnu.org; 3 Mar 2015 20:27:47 +0000 Original-Received: from localhost ([127.0.0.1]:34256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YStPu-0000tu-OX for submit@debbugs.gnu.org; Tue, 03 Mar 2015 15:27:47 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:63878) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YStPs-0000ta-4D for 19988@debbugs.gnu.org; Tue, 03 Mar 2015 15:27:45 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NKN00200KGLSL00@a-mtaout20.012.net.il> for 19988@debbugs.gnu.org; Tue, 03 Mar 2015 22:27:37 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKN0023KKU0HOA0@a-mtaout20.012.net.il>; Tue, 03 Mar 2015 22:27:37 +0200 (IST) In-reply-to: <87k2yycfwh.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:100032 Archived-At: > From: Tassilo Horn > Date: Tue, 03 Mar 2015 15:30:22 +0100 > > The info docs describe the components of drag-events as > > ,----[ (info "(elisp)Drag Events") ] > | (EVENT-TYPE > | (WINDOW1 START-POSITION) > | (WINDOW2 END-POSITION)) > `---- > > where WINDOW1 is the window where the drag started and WINDOW2 is the > window where the drag ended. > > However, that's not correct in case the drag starts in one emacs frame > and ends in another emacs frame. In those cases, WINDOW2 is the frame > containing WINDOW1. > > Is there a reason why drag events cannot work across different frames of > the very same Emacs instance? Not sure why, but it looks like this is by design. The comment in xterm.c and w32term.c says: /* If mouse was grabbed on a frame, give coords for that frame even if the mouse is now outside it. */ If this is only about the case when the drag ends outside of any Emacs frame, then we could amend the code to cover the case that the drag ends on an Emacs frame. The current code doesn't check whether we the button-up event was received in an Emacs frame.