diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-22 20:12:56 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-22 20:12:56 +0200 |
| commit | 956ecb061b1862a4b632c8d5d6b6fa4318e1f640 (patch) | |
| tree | f00adc9bfced275f280239b25a2b2ae15f57765b /src/main.zig | |
| parent | 33e1de2710fe44512440e0e6055578d67dab330c (diff) | |
object refactor and add wl output
Now the Object is held by the registry instead of the struct
its referencing and the struct only has a `handle` which is a usize.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index 7e27f94..a9a5ef6 100644 --- a/src/main.zig +++ b/src/main.zig @@ -7,9 +7,13 @@ pub fn main() !void { const allocator = gpa.allocator(); var display: wl.Display = try .open_default(allocator); - defer display.close(); + defer display.deinit(allocator); try display.init(allocator, &.{wl.Output.handler}); try display.roundtrip(allocator); try display.roundtrip(allocator); + + for (wl.Output.all()) |output| { + std.debug.print("{}\n", .{output}); + } } |