fix: clicking the main window would steal focus
This commit is contained in:
1 parent
3ddedff978
commit
de02e5b83f
1 file changed
+1
-3
@@ -5,14 +5,12 @@ class ThumbnailsPanel: NSPanel {
|
|||||||
override var canBecomeKey: Bool { true }
|
override var canBecomeKey: Bool { true }
|
||||||
|
|
||||||
convenience init() {
|
convenience init() {
|
||||||
self.init(contentRect: .zero, styleMask: .utilityWindow, backing: .buffered, defer: true)
|
self.init(contentRect: .zero, styleMask: .nonactivatingPanel, backing: .buffered, defer: true)
|
||||||
isFloatingPanel = true
|
isFloatingPanel = true
|
||||||
updateFadeOutAnimation()
|
updateFadeOutAnimation()
|
||||||
hidesOnDeactivate = false
|
hidesOnDeactivate = false
|
||||||
hasShadow = false
|
hasShadow = false
|
||||||
titleVisibility = .hidden
|
titleVisibility = .hidden
|
||||||
styleMask.remove(.titled)
|
|
||||||
styleMask.update(with: .nonactivatingPanel)
|
|
||||||
backgroundColor = .clear
|
backgroundColor = .clear
|
||||||
contentView!.addSubview(thumbnailsView)
|
contentView!.addSubview(thumbnailsView)
|
||||||
// 2nd highest level possible; this allows the app to go on top of context menus
|
// 2nd highest level possible; this allows the app to go on top of context menus
|
||||||
|
|||||||
Reference in new issue
Block a user