From de02e5b83ffe74b9add28dad716b230cdb1ac0e3 Mon Sep 17 00:00:00 2001 From: Louis Pontoise Date: Thu, 27 Aug 2020 00:13:08 +0900 Subject: [PATCH] fix: clicking the main window would steal focus --- src/ui/main-window/ThumbnailsPanel.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/main-window/ThumbnailsPanel.swift b/src/ui/main-window/ThumbnailsPanel.swift index 695bc317..410bd650 100644 --- a/src/ui/main-window/ThumbnailsPanel.swift +++ b/src/ui/main-window/ThumbnailsPanel.swift @@ -5,14 +5,12 @@ class ThumbnailsPanel: NSPanel { override var canBecomeKey: Bool { true } convenience init() { - self.init(contentRect: .zero, styleMask: .utilityWindow, backing: .buffered, defer: true) + self.init(contentRect: .zero, styleMask: .nonactivatingPanel, backing: .buffered, defer: true) isFloatingPanel = true updateFadeOutAnimation() hidesOnDeactivate = false hasShadow = false titleVisibility = .hidden - styleMask.remove(.titled) - styleMask.update(with: .nonactivatingPanel) backgroundColor = .clear contentView!.addSubview(thumbnailsView) // 2nd highest level possible; this allows the app to go on top of context menus