• LRN's avatar
    GDK W32: More flexible modal operation mode · 87103b9a
    LRN authored
    Instead of using a boolean to indicate a modal operation being in progress,
    use a set of flags, and allow these to be set and unset independently.
    Specifically, this allows WM_CAPTURECHANGED handler to only act when a drag-move or
    drag-resize modal operation is in progress, and ignore DND (which can also cause
    WM_CAPTURECHANGED to be posted). This avoids a crash due to assertion failure when
    OLE2 DND code tries to end a modal operation that was already ended by the WM_CAPTURECHANGED