Web lists-archives.com

Re: DnD and the drag window

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/

Attachment: 0x8DADE9276759BA74.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

gtk-devel-list mailing list