reset qquickitem internal state when dragging window
when a system move starts, workaround the even management inconsistency that makes items not accept the first click after the move by setting it disabled and then enabled again
Edited by Marco Martin