feat: middle-click will now close windows and quit applications

This commit is contained in:
lwouis committed 2025-01-14 12:24:55 +01:00
1 parent 3a0c84a8f5
commit 2f8c01418d
1 file changed
+7 -1
+7 -1
View File
@@ -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()
}
}
}
}