Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
InputDevice: fix assertion failure
Fixes: 56c1017c24bfbded9b0c40e12655652828079f16
river/InputDevice.zig | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/river/InputDevice.zig b/river/InputDevice.zig
index b437da4..3b04875 100644
--- a/river/InputDevice.zig
+++ b/river/InputDevice.zig
@@ -123,9 +123,6 @@ pub fn createObject(device: *InputDevice, im_v1: *river.InputManagerV1) void {
}
pub fn deinit(device: *InputDevice) void {
- assert(device.objects.empty());
- device.remove.link.remove();
-
if (!device.virtual) {
{
var it = device.objects.iterator(.forward);
@@ -143,6 +140,7 @@ pub fn deinit(device: *InputDevice) void {
}
}
+ device.remove.link.remove();
device.link.remove();
device.seat.updateCapabilities();