deps: update to latest zig-wayland

This commit is contained in:
Isaac Freund
2022-05-09 21:56:28 +02:00
parent d5c915e3cb
commit d47be3b592
4 changed files with 30 additions and 5 deletions

View File

@ -362,7 +362,7 @@ pub fn main() !void {
const registry = try display.getRegistry();
registry.setListener(*Context, registryListener, &context);
_ = try display.roundtrip();
if (display.roundtrip() != .SUCCESS) fatal("initial roundtrip failed", .{});
if (context.layout_manager == null) {
fatal("wayland compositor does not support river-layout-v3.\n", .{});
@ -376,7 +376,9 @@ pub fn main() !void {
try output.getLayout(&context);
}
while (true) _ = try display.dispatch();
while (true) {
if (display.dispatch() != .SUCCESS) fatal("failed to dispatch wayland events", .{});
}
}
fn registryListener(registry: *wl.Registry, event: wl.Registry.Event, context: *Context) void {