fix(overlap): fix check for disabling

This commit is contained in:
Ashley Wulber 2026-05-19 14:47:13 -04:00 committed by Ashley Wulber
parent 6521f7fa20
commit b8b0804140

View file

@ -1590,7 +1590,7 @@ impl SctkState {
};
let notification = overlap_notify_state.notify.notify_on_overlap(wlr, &self.queue_handle, OverlapNotificationV1 { surface: layer_surface.surface.wl_surface().clone() });
_ = self.overlap_notifications.insert(my_id, notification);
} else {
} else if !enabled {
_ = self.overlap_notifications.remove(&my_id);
}
} else {