Skip to content
  • Jonas Dreßler's avatar
    windowManager: Handle window dimming animation getting cancelled · caa99d52
    Jonas Dreßler authored and Florian Müllner's avatar Florian Müllner committed
    When a window with a modal dialog gets minimized and at the same time
    the dialog is closed, the WindowDimmer undim animation starts and gets
    cancelled when the minimize animation is done, because that unmaps the
    window actor.
    
    In this case we want ensure the dimming effect still goes into a
    proper state instead of being stuck mid-animation, so listen to
    onStopped instead of onComplete for syncing state of the window dimmer.
    
    While at it, clean things up a little and move the check for the
    attach-modal-dialogs pref inside the _syncEnabled() function.
    
    Fixes #5581
    
    Part-of: <!2349>
    (cherry picked from commit 4fd2719d)
    caa99d52