From ec2c50b33f12b5993eaf764df6fd712b28587dfd Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 27 Apr 2021 12:24:30 +0200 Subject: [PATCH] deps: update to latest zig-wayland --- deps/zig-wayland | 2 +- example/status.zig | 6 +++--- riverctl/main.zig | 4 ++-- rivertile/main.zig | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deps/zig-wayland b/deps/zig-wayland index f170fe0..a453b26 160000 --- a/deps/zig-wayland +++ b/deps/zig-wayland @@ -1 +1 @@ -Subproject commit f170fe0265dfcea6a00f80691fc9464735734860 +Subproject commit a453b26a078b94b19ac5e0d40407e241fcd1b6af diff --git a/example/status.zig b/example/status.zig index 07f255d..76437a4 100644 --- a/example/status.zig +++ b/example/status.zig @@ -33,18 +33,18 @@ pub fn main() !void { var context = SetupContext{}; - registry.setListener(*SetupContext, registryListener, &context) catch unreachable; + registry.setListener(*SetupContext, registryListener, &context); _ = try display.roundtrip(); const status_manager = context.status_manager orelse return error.RiverStatusManagerNotAdvertised; for (context.outputs.items) |output| { const output_status = try status_manager.getRiverOutputStatus(output); - output_status.setListener(?*c_void, outputStatusListener, null) catch unreachable; + output_status.setListener(?*c_void, outputStatusListener, null); } for (context.seats.items) |seat| { const seat_status = try status_manager.getRiverSeatStatus(seat); - seat_status.setListener(?*c_void, seatStatusListener, null) catch unreachable; + seat_status.setListener(?*c_void, seatStatusListener, null); } context.outputs.deinit(); context.seats.deinit(); diff --git a/riverctl/main.zig b/riverctl/main.zig index 64434e2..8837f79 100644 --- a/riverctl/main.zig +++ b/riverctl/main.zig @@ -55,7 +55,7 @@ fn _main() !void { var globals = Globals{}; - registry.setListener(*Globals, registryListener, &globals) catch unreachable; + registry.setListener(*Globals, registryListener, &globals); _ = try display.roundtrip(); const control = globals.control orelse return error.RiverControlNotAdvertised; @@ -68,7 +68,7 @@ fn _main() !void { const callback = try control.runCommand(seat); - callback.setListener(?*c_void, callbackListener, null) catch unreachable; + callback.setListener(?*c_void, callbackListener, null); // Loop until our callback is called and we exit. while (true) _ = try display.dispatch(); diff --git a/rivertile/main.zig b/rivertile/main.zig index 29d9665..27e03ca 100644 --- a/rivertile/main.zig +++ b/rivertile/main.zig @@ -104,7 +104,7 @@ const Output = struct { fn getLayout(output: *Output, context: *Context) !void { assert(context.initialized); output.layout = try context.layout_manager.?.getLayout(output.wl_output, "rivertile"); - output.layout.setListener(*Output, layoutListener, output) catch unreachable; + output.layout.setListener(*Output, layoutListener, output); } fn deinit(output: *Output) void { @@ -299,7 +299,7 @@ pub fn main() !void { var context: Context = .{}; const registry = try display.getRegistry(); - registry.setListener(*Context, registryListener, &context) catch unreachable; + registry.setListener(*Context, registryListener, &context); _ = try display.roundtrip(); if (context.layout_manager == null) {