diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-22 20:52:30 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-22 20:52:30 +0200 |
| commit | 07c3f2e8f82c55ed191f72fa5e9f3935b1913f98 (patch) | |
| tree | 48b4ce0e9029efeb9da6f6f95f4ae798d14df14d /src/main.zig | |
| parent | 956ecb061b1862a4b632c8d5d6b6fa4318e1f640 (diff) | |
add first sketch of wl.compositor
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index a9a5ef6..db68ee3 100644 --- a/src/main.zig +++ b/src/main.zig @@ -8,12 +8,19 @@ pub fn main() !void { var display: wl.Display = try .open_default(allocator); defer display.deinit(allocator); - try display.init(allocator, &.{wl.Output.handler}); + try display.init(allocator, &.{ + wl.Output.handler, + wl.Compositor.handler, + }); try display.roundtrip(allocator); try display.roundtrip(allocator); - for (wl.Output.all()) |output| { + for (wl.Output.instances.items) |output| { std.debug.print("{}\n", .{output}); } + + for (wl.Compositor.instances.items) |compositor| { + std.debug.print("{}\n", .{compositor}); + } } |