From: Robert Weiner <rsw@gnu.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Possible Bug: Mouse drag event records wrong window for release when crossing frames
Date: Tue, 26 Sep 2017 02:06:49 -0400 [thread overview]
Message-ID: <CA+OMD9j=xH=82a+3+pBZOh861VWAoL3NE-0gQumRJ8AF_Yu6YQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]
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.
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.
(drag-mouse-2 (#<window 90 on *Buffer List*> 2905 (88 . 467) 4050744642 nil
2905 (12 . 33) nil (4 . 5) (7 . 14)) (#<frame hmouse-drv.el
"/Users/bk/Dropbox/emacs/hyperbole/" 0x102f5bde8> nil (-1373 . 463)
4050749802))
Has anyone seen this behavior before or know what's going on. I'm just
trying to write a simple function that selects a buffer from one window and
puts it in another window which may be in another frame.
Thanks,
Bob
[-- Attachment #2: Type: text/html, Size: 1688 bytes --]
next reply other threads:[~2017-09-26 6:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-26 6:06 Robert Weiner [this message]
2017-09-27 8:11 ` Possible Bug: Mouse drag event records wrong window for release when crossing frames martin rudalics
2017-09-27 13:44 ` Robert Weiner
2017-09-29 8:34 ` martin rudalics
2017-09-29 13:03 ` Robert Weiner
2017-09-29 18:19 ` martin rudalics
2017-09-29 17:31 ` Stefan Monnier
2017-09-29 18:20 ` martin rudalics
2017-09-29 19:08 ` Robert Weiner
2017-09-29 19:20 ` Stefan Monnier
2017-09-29 19:25 ` Robert Weiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+OMD9j=xH=82a+3+pBZOh861VWAoL3NE-0gQumRJ8AF_Yu6YQ@mail.gmail.com' \
--to=rsw@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rswgnu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.