bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19988: 25.0.50; Drag events ending in different frame


From: Jan D.
Subject: bug#19988: 25.0.50; Drag events ending in different frame
Date: Mon, 09 Mar 2015 08:53:43 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]