mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04:00
layers mostly implemented
This commit is contained in:
parent
9186aeecd3
commit
4c88d42929
3 changed files with 5 additions and 8 deletions
|
|
@ -30,13 +30,14 @@ pub fn init(wlr_layer_surface: *wlr.LayerSurfaceV1) *LayerSurface {
|
|||
.wlr_layer_surface = wlr_layer_surface,
|
||||
.scene_layer_surface = undefined,
|
||||
};
|
||||
|
||||
// try server.root.scene.tree.createSceneLayerSurfaceV1(wlr_layer_surface)
|
||||
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),
|
||||
.bottom => try output.layers.background.createSceneLayerSurfaceV1(wlr_layer_surface),
|
||||
.top => try output.layers.background.createSceneLayerSurfaceV1(wlr_layer_surface),
|
||||
.overlay => try output.layers.background.createSceneLayerSurfaceV1(wlr_layer_surface),
|
||||
.bottom => try output.layers.bottom.createSceneLayerSurfaceV1(wlr_layer_surface),
|
||||
.top => try output.layers.top.createSceneLayerSurfaceV1(wlr_layer_surface),
|
||||
.overlay => try output.layers.overlay.createSceneLayerSurfaceV1(wlr_layer_surface),
|
||||
else => {
|
||||
std.log.err("New layer surface of unidentified type", .{});
|
||||
unreachable;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ const zwlr = @import("wayland").server.zwlr;
|
|||
const wlr = @import("wlroots");
|
||||
const std = @import("std");
|
||||
|
||||
|
||||
|
||||
const Server = @import("Server.zig");
|
||||
const Utils = @import("Utils.zig");
|
||||
const View = @import("View.zig");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue