mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
layer shell backgrounds now render behind views
This commit is contained in:
parent
7265fecfaf
commit
a8e77be43b
2 changed files with 2 additions and 6 deletions
|
|
@ -65,13 +65,10 @@ pub fn initFromTopLevel(xdg_toplevel: *wlr.XdgToplevel) *View {
|
|||
// Add new Toplevel to root of the tree
|
||||
// Later add to spesified output
|
||||
if(server.seat.focused_output) |output| {
|
||||
std.log.debug("adding new view to content layer", .{});
|
||||
self.scene_tree = try output.layers.content.createSceneXdgSurface(xdg_toplevel.base);
|
||||
// _ = output;
|
||||
// self.scene_tree = try server.root.scene.tree.createSceneXdgSurface(xdg_toplevel.base);
|
||||
} else {
|
||||
self.scene_tree = try server.root.waiting_room.createSceneXdgSurface(xdg_toplevel.base);
|
||||
std.log.err("No output to attach new view to", .{});
|
||||
self.scene_tree = try server.root.waiting_room.createSceneXdgSurface(xdg_toplevel.base);
|
||||
}
|
||||
|
||||
self.scene_tree.node.data = self;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue