Skip to content

Commit

Permalink
fix: hide window controls after a window is closed (closes #925)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed May 26, 2021
1 parent c59368c commit 0dad739
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/main-window/ThumbnailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0dad739

Please sign in to comment.