diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-03 02:16:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-03 02:16:10 +0900 |
| commit | 024d2ff7826a81db65eefa1843730b537ebdeef1 (patch) | |
| tree | b3d9048c075fec0759bd8886a07a252ca0ce4555 /system/xhost.go | |
| parent | 6f719bc3c19d56279d2d76d3bcf8fb66ace2d2fb (diff) | |
system: improve tests of the I struct
This cleans up for the test overhaul of this package.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/xhost.go')
| -rw-r--r-- | system/xhost.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/xhost.go b/system/xhost.go index 2ed1acff..22a0669f 100644 --- a/system/xhost.go +++ b/system/xhost.go @@ -22,7 +22,7 @@ func (x XHostOp) apply(*I) error { } func (x XHostOp) revert(_ *I, ec *Criteria) error { - if ec.hasType(x) { + if ec.hasType(x.Type()) { msg.Verbosef("deleting entry %s from X11", x) return newOpError("xhost", xcb.ChangeHosts(xcb.HostModeDelete, xcb.FamilyServerInterpreted, "localuser\x00"+string(x)), false) |
