Comment 23 for bug 38753

Revision history for this message
In , Timmmm (tdhutt) wrote :

Ok I investigated how windows does this, and its algorithm is this:

On mouse-down, if the clicked item can be dragged, do nothing, otherwise raise and pass click. If it is possible for the item to be dragged, wait for mouse-up or mouse-move to decide what to do.

The trouble with implementing this on linux, is that there is no easy way (afaics) to tell whether the item under the mouse can be dragged.

I looked in Qt a while ago, and QWidget's don't seem to make that information available - to support d&d you just modify the onMouseMove event (or something).