several fixes. layer surfaces now work

This commit is contained in:
IoIxD 2026-07-09 15:19:25 -07:00
commit 044b067f7f
2 changed files with 99 additions and 53 deletions

View file

@ -655,7 +655,7 @@ static void keyboard_keymap(void* data,
MwLL self = data;
(void)wl_keyboard;
if(self->wayland.type == MwLL_WAYLAND_TOPLEVEL || self->wayland.type == MwLL_WAYLAND_LAYER_SURFACE) {
if(!self->wayland.parent) {
assert(format == WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1);
char* map_shm = (char*)mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0);