juliendelplanque / Mirage

A windows switcher with a previewer for Pharo.
MIT License
34 stars 4 forks source link

Blinking window #5

Closed juliendelplanque closed 8 years ago

juliendelplanque commented 8 years ago

It appears when a collapsed window's thumbnail is updated.

To fix it, just check if the window is collapsed before updating the thumbnail. If so, don't update the thumbnail (if it is collapsed, the thumbnail of the window didn't changed).

juliendelplanque commented 8 years ago

Tried this in another image and it works:

scheduleThumbnailUpdate
    [ 
        MICarouselSettings thumbnailUpdateTime seconds wait.
        self mirageMutex 
            critical: [ 
                self isCollapsed ifFalse: [ self updateMirageThumbnail ] ].
        self continueToScheduleUpdate
            ifTrue: [ self scheduleThumbnailUpdate ]
    ] forkNamed: 'MirageThumbnailUpdater'.