Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
deps: update zig-wlroots
Simplifies wlr_seat.keyboardNotifyEnter() signature.
deps/zig-wlroots | 2 +-
river/Seat.zig | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/deps/zig-wlroots b/deps/zig-wlroots
index aae7f23..2149026 160000
--- a/deps/zig-wlroots
+++ b/deps/zig-wlroots
@@ -1 +1 @@
-Subproject commit aae7f237e270ed8fc2ff10f3a661ced618c527cf
+Subproject commit 2149026047c95b3cad2eb2bf1e3e9f66447dae97
diff --git a/river/Seat.zig b/river/Seat.zig
index df9a336..642954c 100644
--- a/river/Seat.zig
+++ b/river/Seat.zig
@@ -313,12 +313,11 @@ fn keyboardNotifyEnter(self: *Self, wlr_surface: *wlr.Surface) void {
self.wlr_seat.keyboardNotifyEnter(
wlr_surface,
- &keycodes.buffer,
- keycodes.len,
+ keycodes.constSlice(),
&wlr_keyboard.modifiers,
);
} else {
- self.wlr_seat.keyboardNotifyEnter(wlr_surface, null, 0, null);
+ self.wlr_seat.keyboardNotifyEnter(wlr_surface, &.{}, null);
}
}