From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Possible Bug: Mouse drag event records wrong window for release when crossing frames Date: Wed, 27 Sep 2017 10:11:49 +0200 Message-ID: <59CB5D45.9070603@gmx.at> References: 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 1506499974 21579 195.159.176.226 (27 Sep 2017 08:12:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Sep 2017 08:12:54 +0000 (UTC) To: rswgnu@gmail.com, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 27 10:12:46 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dx7ST-0004qW-QP for ged-emacs-devel@m.gmane.org; Wed, 27 Sep 2017 10:12:41 +0200 Original-Received: from localhost ([::1]:53219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dx7Sb-0005jQ-6g for ged-emacs-devel@m.gmane.org; Wed, 27 Sep 2017 04:12:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dx7Rt-0005iu-8y for emacs-devel@gnu.org; Wed, 27 Sep 2017 04:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dx7Ro-0001Ew-AY for emacs-devel@gnu.org; Wed, 27 Sep 2017 04:12:05 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:65098) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dx7Ro-0001Eb-0m for emacs-devel@gnu.org; Wed, 27 Sep 2017 04:12:00 -0400 Original-Received: from [192.168.1.100] ([46.125.249.22]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MIQlv-1dvBMw1rwt-004D4t; Wed, 27 Sep 2017 10:11:57 +0200 In-Reply-To: X-Provags-ID: V03:K0:dk7+iQuMesZ5xNKzL2ApGiajRcjT5wZK3t3bcuKHwoskIhQXPUz uMdR0q9ls/6k/mE/1I3rCtutLF1hd4KDYYECH3WAY19fvpLNcVpV2kYSeukfogkpd0AE5rH UcrL6Dg7m5GCat/iRP6SyjFcSvWRZpBNPj+Ry8/rcf9Ni2SRHrBf5ka4ltKgv+2YapF2ce9 E7G41LaimH5ZCC8QzK30w== X-UI-Out-Filterresults: notjunk:1;V01:K0:pRUD8Fx4aJQ=:Z9AeQH3/Xixf/jTgtLtl6V Xg50pZmV3Z3KrX3V05E3JXA//JNWwgdz3fd+wTOUUOwJo5mZqTcckIIueeU0g1r1wx1NOBZ9C 4IjbCB2ywJT2fseD7tRVeC2jiLuhXcAL9ujdFSLjPYlYpnnLGtoACur/yo+CybybfqW0Q8wA3 28qP5RGgYC6CC3Gl1mdkiYqkQAT8AqTz3FPqMua/m6He1bgMC1j7ewmrxxpifOJoXFbObyiAa zPbOWODeM68Q/4tiXMcoG7QjjiRFzhsiQg4gihwDzTjZnfa8TgdxXOcMH4Q5wFrBhieku9whs 634zCDKN8t/Ar1QDIwFDR7Y5kA0IUwN751codPmRSf9jcRJu4K4Nw4gHf+iUtF27s8npiJ1zn wOKMHq81peDxpRp6UZs7bqkKhMARyij9tElW0fGZeadY4SmsTZsF37GnfQ/JKM0quw2K8+dG2 kDy/qaxCGGT1wmVK08OEeN2OOfGXLZfl1UxN7YnD6nygvTzHwU4MO8pehdPYWDe26hc+8SP/d ZQQwGm6llwgseWxFCkXF8IpZvf8nPmEeQnd/ZDoTLEUw0wIqGUg9jprXQnoaYmkC71W+I2S2j Ilnw2kJurR6JYCpSDqh1BlcQTphteELgVWQdV6V37J0/2vGIX77VCKHxYNm/IUg7fs1RaRYmx N5KFZN8LremkG20j/cigVjTl1DEMloxavYExk2De43ke9SvWI+VYNvH2ZRar0aWebGObJnx+g dZRieIXKNzvDjAn7j1Pk0g+aQV109TH2xU1zwCmvn0si5zl6dxCdKfvTGL7QlG3YUlY8jG5A X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218818 Archived-At: > With Emacs 25.2 under MacOS 10.12, I use a mouse key that has bindings on > both its depress and release states. The depress is in a frame with 2 > windows (one showing *Buffer List* and the other showing hmouse-drv.el). > The depress occurs in the *Buffer List* window. > > The release occurs in another frame and the release window is showing > hui-window.el. Are the frames occupying separate areas on your screen or do they intersect? > Here is the drag event generated. Element 2 shows the proper depress > window but element 3 shows the depress frame rather than the release > frame. And element 3 has a frame rather than a window as its first > argument even though the Elisp manual says it should be a window. IIRC it's a frame when there's no suitable window at the specified position. This is largely undocumented and has been sometimes even used wrongly in the Emacs code base itself. > (drag-mouse-2 (# 2905 (88 . 467) 4050744642 nil > 2905 (12 . 33) nil (4 . 5) (7 . 14)) (# "/Users/bk/Dropbox/emacs/hyperbole/" 0x102f5bde8> nil (-1373 . 463) > 4050749802)) The start event seems to look OK. As for the end event, an X-coordinate of -1373 does not look reasonable. Please post results for dragging from one to another window on the same frame. Thanks, martin