From 2f8c01418ddac14267a439448422677ccbb1451d Mon Sep 17 00:00:00 2001 From: lwouis Date: Mon, 13 Jan 2025 11:08:09 +0100 Subject: [PATCH] feat: middle-click will now close windows and quit applications --- src/ui/main-window/ThumbnailView.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() + } + } } }