fix: clicking the main window would steal focus

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-08-27 22:44:40 +09:00
1 parent 3ddedff978
commit de02e5b83f
1 file changed
+1 -3
+1 -3
View File
@@ -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