Files
netbird/client/ui/tray_click_other.go
8b7ce337d8 [client] UI refactor (#6069)
Refactor UI

---------

Co-authored-by: Eduard Gert <kontakt@eduardgert.de>
Co-authored-by: braginini <bangvalo@gmail.com>
Co-authored-by: Pascal Fischer <32096965+pascal-fischer@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: riccardom <riccardomanfrin@gmail.com>
2026-06-19 09:59:28 +02:00

14 lines
609 B
Go

//go:build !windows && !android && !ios && !freebsd && !js && (!linux || (linux && 386))
package main
func bindTrayClick(*Tray) {
// No-op: macOS's native NSStatusItem opens the menu on click itself, and
// binding OnClick→anything blocking there froze the tray historically
// (see tray_click_windows.go). Windows wires an explicit handler
// (tray_click_windows.go); Linux opens the window on left-click
// (tray_click_linux.go). The (linux && 386) arm keeps a no-op fallback for
// the i386 Linux build, which excludes the cgo XEmbed/SNI files that
// tray_click_linux.go's build tag matches.
}