aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/xhost.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/xhost.go')
-rw-r--r--system/xhost.go2
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)