We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6138fe8 commit db521c8Copy full SHA for db521c8
1 file changed
Spaceman/View/StatusBar.swift
@@ -84,15 +84,18 @@ class StatusBar: NSObject, NSMenuDelegate {
84
sbMenu.popUp(positioning: nil, at: menuOrigin, in: nil)
85
sbButton.isHighlighted = false
86
}
87
- } else {
+ } else if (event.type == .leftMouseDown) {
88
// Switch desktops on left click
89
let locationInButton = sbButton.convert(event.locationInWindow, from: sbButton)
90
91
self.spaceSwitcher.switchUsingLocation(
92
widths: self.iconCreator.widths,
93
horizontal: locationInButton.x,
94
onError: self.flashStatusBar)
95
+ } else {
96
+ print("Other event: \(event.type)")
97
98
+ sbButton.highlight(false)
99
100
101
0 commit comments