From: David Reitter <david.reitter@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Cc: Nathaniel Cunningham <nathaniel.cunningham@gmail.com>
Subject: dragging between frames?
Date: Fri, 24 Oct 2008 17:22:51 -0400 [thread overview]
Message-ID: <3477C335-F897-4CBA-90EF-D3D98F586427@gmail.com> (raw)
How does one recognize the target frame/window of a "drag" action?
We've been trying to track the mouse using something like this:
(track-mouse
(while (print (read-event)))
... which always returns an event that is relative to the selected
frame, rather than the one the mouse is over.
This does not yield desired results when the window manager does not
automatically switch focus.
It seems that there is no way to find out where the mouse is unless it
is over a selected frame. (mouse-position) and (mouse-pixel-position)
always return a value that is relative to the origin of the selected
frame, and there seems to be no function that would return the window
underneath the mouse or at given global pixel coordinates.
I can probably hack something together to fix our specific problem
with dragging and dropping on Carbon, but that wouldn't be the general
solution that would work on other systems. Shouldn't there be a
general way to do this?
Thanks in advance for your comments.
reply other threads:[~2008-10-24 21:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3477C335-F897-4CBA-90EF-D3D98F586427@gmail.com \
--to=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=nathaniel.cunningham@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.