DnD and the drag window

classic Classic list List threaded Threaded
2 messages Options
LRN
Reply | Threaded
Open this post in threaded view
|

DnD and the drag window

LRN
I'm working on W32 OLE2 DnD code, and i encountered some weird behaviour.

There's a DnD going on, and it creates a popup window that moves along with the
mouse cursor, that's how it usually goes with DnD.

Problem is, that window is, technically, a toplevel, and thus it gets
registered as a DnD target, like all other toplevels are (whether this is a
good idea by itself is another question for another time). So the mouse pointer
moves over a widget, DnD enter is emitted, the popup is moved in sync, and now,
due to popup being very square, mouse is *over* the popup, and since popup is
also a drop target, the DnD switches to *it*
So this screws up all the DnD where drag widget is highly-rectangular.

How is this handled on X?

--
O< ascii ribbon - stop html email! - http://arc.pasp.de/

_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

0x8DADE9276759BA74.asc (3K) Download Attachment
signature.asc (836 bytes) Download Attachment
LRN
Reply | Threaded
Open this post in threaded view
|

Re: DnD and the drag window

LRN
On 8/14/2017 11:38 AM, LRN wrote:

> I'm working on W32 OLE2 DnD code, and i encountered some weird behaviour.
>
> There's a DnD going on, and it creates a popup window that moves along with the
> mouse cursor, that's how it usually goes with DnD.
>
> Problem is, that window is, technically, a toplevel, and thus it gets
> registered as a DnD target, like all other toplevels are (whether this is a
> good idea by itself is another question for another time). So the mouse pointer
> moves over a widget, DnD enter is emitted, the popup is moved in sync, and now,
> due to popup being very square, mouse is *over* the popup, and since popup is
> also a drop target, the DnD switches to *it*
> So this screws up all the DnD where drag widget is highly-rectangular.
>
> How is this handled on X?
>
Never mind, figured it out (i think).

--
O< ascii ribbon - stop html email! - http://arc.pasp.de/

_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

0x8DADE9276759BA74.asc (3K) Download Attachment
signature.asc (836 bytes) Download Attachment