aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/wayland.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-03 02:16:10 +0900
committerOphestra <cat@gensokyo.uk>2025-09-03 02:16:10 +0900
commit024d2ff7826a81db65eefa1843730b537ebdeef1 (patch)
treeb3d9048c075fec0759bd8886a07a252ca0ce4555 /system/wayland.go
parent6f719bc3c19d56279d2d76d3bcf8fb66ace2d2fb (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/wayland.go')
-rw-r--r--system/wayland.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/wayland.go b/system/wayland.go
index 999feee7..f6e50511 100644
--- a/system/wayland.go
+++ b/system/wayland.go
@@ -59,7 +59,7 @@ func (w *WaylandOp) apply(sys *I) error {
}
func (w *WaylandOp) revert(_ *I, ec *Criteria) error {
- if ec.hasType(w) {
+ if ec.hasType(w.Type()) {
msg.Verbosef("removing wayland socket on %q", w.dst)
if err := os.Remove(w.dst); err != nil && !errors.Is(err, os.ErrNotExist) {
return newOpError("wayland", err, true)