diff --git a/src/ui/main-window/ThumbnailView.swift b/src/ui/main-window/ThumbnailView.swift index 01202c69..0a3b323c 100644 --- a/src/ui/main-window/ThumbnailView.swift +++ b/src/ui/main-window/ThumbnailView.swift @@ -80,7 +80,13 @@ class ThumbnailView: FlippedView { override func otherMouseUp(with event: NSEvent) { // middle-click if event.buttonNumber == 2 { - window_?.close() + if let window_ { + if window_.isWindowlessApp { + window_.application.quit() + } else { + window_.close() + } + } } }