mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
debug scene tree printer, layers are functional again
This commit is contained in:
parent
44f694f916
commit
42d66ea2b6
6 changed files with 417 additions and 21 deletions
|
|
@ -19,6 +19,7 @@ const Utils = @import("Utils.zig");
|
|||
xdg_toplevel_decoration_manager: *wlr.XdgDecorationManagerV1,
|
||||
|
||||
scene: *wlr.Scene,
|
||||
scene_node_data: SceneNodeData,
|
||||
|
||||
waiting_room: *wlr.SceneTree,
|
||||
scene_output_layout: *wlr.SceneOutputLayout,
|
||||
|
|
@ -38,11 +39,14 @@ pub fn init(self: *Root) void {
|
|||
|
||||
self.* = .{
|
||||
.scene = scene,
|
||||
.scene_node_data = .{ .root = self },
|
||||
.waiting_room = try scene.tree.createSceneTree(),
|
||||
.output_layout = output_layout,
|
||||
.xdg_toplevel_decoration_manager = try wlr.XdgDecorationManagerV1.create(server.wl_server),
|
||||
.scene_output_layout = try scene.attachOutputLayout(output_layout),
|
||||
};
|
||||
|
||||
self.scene.tree.node.data = &self.scene_node_data;
|
||||
}
|
||||
|
||||
pub fn deinit(self: *Root) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue