It looks like we hide the following is happening :
- We hide the calendar when a date is seclected (mouse press event, date-selected signal)
- We don't catch the mouse released signal (because calendar is hidden and thus cannot catch any X event)
- When we show the calendar, it thinks that the mouse button is still pressed and initiate a drag-n-drop
My proposed solution is to close the calendar on mouse released event, not on day-selected. It would be a more elegant behaviour and solve this bug.
It looks like we hide the following is happening :
- We hide the calendar when a date is seclected (mouse press event, date-selected signal)
- We don't catch the mouse released signal (because calendar is hidden and thus cannot catch any X event)
- When we show the calendar, it thinks that the mouse button is still pressed and initiate a drag-n-drop
My proposed solution is to close the calendar on mouse released event, not on day-selected. It would be a more elegant behaviour and solve this bug.