From 6bd303d2e8779b8ae7c2389fe2a7cfee36ffed9c Mon Sep 17 00:00:00 2001 From: Louis Pontoise Date: Fri, 24 Jun 2022 18:51:31 +0900 Subject: [PATCH] fix: mouse-hover controls remained after closing a window (closes #1730) --- src/ui/main-window/ThumbnailView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/main-window/ThumbnailView.swift b/src/ui/main-window/ThumbnailView.swift index 0d27ff29..baeec9a4 100644 --- a/src/ui/main-window/ThumbnailView.swift +++ b/src/ui/main-window/ThumbnailView.swift @@ -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 {