From ddb003e39b64c2417cabc291383d99b4ad64ac8f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 30 Aug 2025 20:02:18 +0900 Subject: 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 --- system/internal/xcb/export.go | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 system/internal/xcb/export.go (limited to 'system/internal/xcb/export.go') 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) -} -- cgit v1.3.1