diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-30 20:02:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-30 20:02:18 +0900 |
| commit | ddb003e39b64c2417cabc291383d99b4ad64ac8f (patch) | |
| tree | 143ad59a7262ae9186d9266a4b5062feba231ba9 /system/internal/xcb/export.go | |
| parent | b12c290f12ab65754d6ce8a461fe641e245cb09c (diff) | |
system/internal/xcb: refactor and clean up
This package still does not deserve to be out of internal, but at least it is less haunting now. I am still not handling the xcb error though, the struct is almost entirely undocumented and the implementation is unreadable. Not even going to try.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/internal/xcb/export.go')
| -rw-r--r-- | system/internal/xcb/export.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/system/internal/xcb/export.go b/system/internal/xcb/export.go deleted file mode 100644 index 1ed9997f..00000000 --- a/system/internal/xcb/export.go +++ /dev/null @@ -1,22 +0,0 @@ -// Package xcb implements X11 ChangeHosts via libxcb. -package xcb - -import ( - "errors" -) - -var ErrChangeHosts = errors.New("xcb_change_hosts() failed") - -func ChangeHosts(mode HostMode, family Family, address string) error { - var conn *connection - - if c, err := connect(); err != nil { - c.disconnect() - return err - } else { - defer c.disconnect() - conn = c - } - - return conn.changeHostsChecked(mode, family, address) -} |
