layer shell and keybinds

This commit is contained in:
2026-05-16 21:59:36 +07:00
parent 090659d582
commit 62dbb3a54e
12 changed files with 116 additions and 52 deletions
+21
View File
@@ -0,0 +1,21 @@
#include <wlr/types/wlr_layer_shell_v1.h>
#include "layout.h"
#include "types.h"
void layer_arrange(absn_output *output)
{
struct wlr_box usable_area = output->geom;
absn_layer_surface *layer_surface;
wl_list_for_each(layer_surface, &output->layer_surfaces, link)
{
if (!layer_surface->wlr->initialized)
continue;
wlr_scene_layer_surface_v1_configure(layer_surface->scene_layer, &output->geom, &usable_area);
}
output->usable_area = usable_area;
layout_arrange(output);
}