mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-21 14:19:08 +02:00
Tighten verbose comments in Wails UI Go code
Shorten over-long godoc/inline comments across the client/ui tray and services code: drop narrative restatement, legacy-Fyne tangents, and text already evident from signatures and names. Keep only the non-obvious why (concurrency/lock ordering, platform quirks, ordering constraints, the profile-switch state table). No code changes.
This commit is contained in:
@@ -14,9 +14,8 @@ typedef struct CursorPoint {
|
||||
int ok;
|
||||
} CursorPoint;
|
||||
|
||||
// XQueryPointer hits Xorg directly on X11 sessions and XWayland on
|
||||
// Wayland sessions (shipped by default on the supported distros). ok=0
|
||||
// when no X server is reachable — caller falls back gracefully.
|
||||
// XQueryPointer works on X11 and, via XWayland, on Wayland sessions.
|
||||
// ok=0 when no X server is reachable.
|
||||
CursorPoint nbGetCursorPos(void) {
|
||||
CursorPoint p = {0, 0, 0};
|
||||
Display *dpy = XOpenDisplay(NULL);
|
||||
|
||||
Reference in New Issue
Block a user