fix: mouse-hover controls remained after closing a window (closes #1730)

This commit is contained in:
Louis Pontoise committed 2022-06-24 18:58:52 +09:00
1 parent dbddcc1c10
commit 6bd303d2e8
1 file changed
+1
+1
View File
@@ -182,6 +182,7 @@ class ThumbnailView: NSStackView {
self.mouseUpCallback = { () -> Void in App.app.focusSelectedWindow(element) }
self.mouseMovedCallback = { () -> Void in Windows.updateFocusedWindowIndex(index) }
[quitIcon, closeIcon, minimizeIcon, maximizeIcon].forEach { $0.window_ = element }
showOrHideWindowControls(false)
// force a display to avoid flickering; see https://github.com/lwouis/alt-tab-macos/issues/197
// quirk: display() should be called last as it resets thumbnail.frame.size somehow
if labelChanged {