deps: update to latest zig-wayland
This commit is contained in:
parent
1b6e6de99e
commit
ec2c50b33f
4 changed files with 8 additions and 8 deletions
2
deps/zig-wayland
vendored
2
deps/zig-wayland
vendored
|
@ -1 +1 @@
|
|||
Subproject commit f170fe0265dfcea6a00f80691fc9464735734860
|
||||
Subproject commit a453b26a078b94b19ac5e0d40407e241fcd1b6af
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue