git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit5fdfa215909411c3bab6f971af1c4b78697e068d
parent9f615c91cd
authorIsaac Freund <[email protected]>
date2026-03-15 15:51
deps: update to tagged releases

Oops, forgot to do this before tagging v0.4.0

 build.zig.zon           | 12 ++++++------
 river/KeyboardGroup.zig |  6 +++---
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/build.zig.zon b/build.zig.zon
index 2440f60..ba3ea2e 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -16,16 +16,16 @@
             .hash = "pixman-0.3.0-LClMnz2VAAAs7QSCGwLimV5VUYx0JFnX5xWU6HwtMuDX",
         },
         .wayland = .{
-            .url = "git+https://codeberg.org/ifreund/zig-wayland?ref=main#f2480d25764a50ed2fe29f49e4209c074a557f46",
-            .hash = "wayland-0.5.0-dev-lQa1kvTUAQCsD8AobfOXJA_-TVG-WTYXju68OZ8L85RM",
+            .url = "https://codeberg.org/ifreund/zig-wayland/archive/v0.5.0.tar.gz",
+            .hash = "wayland-0.5.0-lQa1knz8AQCh08NA8BeQrwJB9U3CfqcVAdHZYGRKIGuu",
         },
         .wlroots = .{
-            .url = "git+https://codeberg.org/ifreund/zig-wlroots?ref=master#95c4341e3afe9496331baf2156a3ee15b2cb7bc0",
-            .hash = "wlroots-0.19.4-dev-jmOlcqgMBACgOFbQ0IIFURB7HztxzXL_A_3am6rAioTA",
+            .url = "https://codeberg.org/ifreund/zig-wlroots/archive/v0.19.4.tar.gz",
+            .hash = "wlroots-0.19.4-jmOlcqQMBABhKYH6NMSnoK1sohTbhc97_JP-hGg2UZaK",
         },
         .xkbcommon = .{
-            .url = "git+https://codeberg.org/ifreund/zig-xkbcommon?ref=main#a10651157cb1545ee3ae3818b4c7437c64d16462",
-            .hash = "xkbcommon-0.4.0-dev-VDqIe3bUAQB9reSurmSJxQjiQ6bnpekmOxIp_077GhVZ",
+            .url = "https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.4.0.tar.gz",
+            .hash = "xkbcommon-0.4.0-VDqIe0i2AgDRsok2GpMFYJ8SVhQS10_PI2M_CnHXsJJZ",
         },
     },
     .fingerprint = 0xf5e3672b8e8d6efc,
diff --git a/river/KeyboardGroup.zig b/river/KeyboardGroup.zig
index cd90628..82fd372 100644
--- a/river/KeyboardGroup.zig
+++ b/river/KeyboardGroup.zig
@@ -302,7 +302,7 @@ fn handleKey(listener: *wl.Listener(*wlr.Keyboard.event.Key), event: *wlr.Keyboa
 }
 
 fn keysymIsModifier(keysym: xkb.Keysym) bool {
-    switch (@intFromEnum(keysym)) {
+    switch (keysym) {
         xkb.Keysym.Shift_L,
         xkb.Keysym.Shift_R,
         xkb.Keysym.Control_L,
@@ -365,10 +365,10 @@ fn handleModifiers(listener: *wl.Listener(*wlr.Keyboard), _: *wlr.Keyboard) void
 /// Returns true if the keysym was handled.
 fn handleBuiltinBinding(keysym: xkb.Keysym) bool {
     switch (@intFromEnum(keysym)) {
-        xkb.Keysym.XF86Switch_VT_1...xkb.Keysym.XF86Switch_VT_12 => {
+        @intFromEnum(xkb.Keysym.XF86Switch_VT_1)...@intFromEnum(xkb.Keysym.XF86Switch_VT_12) => {
             log.debug("switch VT keysym received", .{});
             if (server.session) |session| {
-                const vt = @intFromEnum(keysym) - xkb.Keysym.XF86Switch_VT_1 + 1;
+                const vt = @intFromEnum(keysym) - @intFromEnum(xkb.Keysym.XF86Switch_VT_1) + 1;
                 std.log.info("switching to VT {}", .{vt});
                 session.changeVt(vt) catch std.log.err("changing VT failed", .{});
             }