Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions NetBar/NetBar/MenuBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,7 @@ class MenuBarView: NSView {
}
}

override func mouseDown(with event: NSEvent) {
// Pass click to the status item's button so the menu appears
super.mouseDown(with: event)
if let menu = self.enclosingMenuItem?.menu {
menu.popUp(positioning: nil, at: NSPoint.zero, in: self)
} else {
// Forward event if wrapped in NSStatusBarButton
self.nextResponder?.mouseDown(with: event)
}
override func hitTest(_ point: NSPoint) -> NSView? {
nil
}
}