mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05: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
|
|
@ -47,8 +47,6 @@ pub fn init(wlr_layer_surface: *wlr.LayerSurfaceV1) *LayerSurface {
|
|||
.scene_node_data = .{ .layer_surface = self }
|
||||
};
|
||||
|
||||
self.wlr_layer_surface.surface.data = &self.scene_node_data;
|
||||
|
||||
if(server.seat.focused_output) |output| {
|
||||
self.scene_layer_surface = switch (wlr_layer_surface.current.layer) {
|
||||
.background => try output.layers.background.createSceneLayerSurfaceV1(wlr_layer_surface),
|
||||
|
|
@ -62,6 +60,9 @@ pub fn init(wlr_layer_surface: *wlr.LayerSurfaceV1) *LayerSurface {
|
|||
};
|
||||
}
|
||||
|
||||
self.wlr_layer_surface.surface.data = &self.scene_node_data;
|
||||
self.scene_layer_surface.tree.node.data = &self.scene_node_data;
|
||||
|
||||
self.wlr_layer_surface.events.destroy.add(&self.destroy);
|
||||
self.wlr_layer_surface.surface.events.map.add(&self.map);
|
||||
self.wlr_layer_surface.surface.events.unmap.add(&self.unmap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue