fix: hide window controls after a window is closed (closes #925)

This commit is contained in:
Louis Pontoise
2021-05-26 23:44:34 +09:00
parent c59368c601
commit 0dad739b15
+2
View File
@@ -154,6 +154,8 @@ class ThumbnailView: NSStackView {
}
self.mouseUpCallback = { () -> Void in App.app.focusSelectedWindow(element) }
self.mouseMovedCallback = { () -> Void in Windows.updateFocusedWindowIndex(index) }
showOrHideWindowControls(false)
[closeIcon, minimizeIcon, maximizeIcon].forEach { $0.hovered(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 {