layer shells do not appear

This commit is contained in:
Harrison DiAmbrosio 2025-12-14 10:25:02 -05:00
parent 49a6ced28e
commit 44f694f916
4 changed files with 10 additions and 9 deletions

View file

@ -211,7 +211,6 @@ fn handleNewXdgToplevelDecoration(
decoration: *wlr.XdgToplevelDecorationV1
) void {
if(server.root.viewById(@intFromPtr(decoration.toplevel))) |view| {
std.log.debug("found view\n", .{});
view.xdg_toplevel_decoration = decoration;
}
}
@ -224,6 +223,7 @@ fn handleNewLayerSurface(
_: *wl.Listener(*wlr.LayerSurfaceV1),
layer_surface: *wlr.LayerSurfaceV1
) void {
std.log.debug("requested layer shell\n", .{});
if (layer_surface.output == null) {
if (server.seat.focused_output == null) {
std.log.err("No output available for new layer surface", .{});