Skip to content

Commit

Permalink
fix: clicking the main window would steal focus
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Aug 27, 2020
1 parent 3ddedff commit de02e5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ui/main-window/ThumbnailsPanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de02e5b

Please sign in to comment.