layer shell

This commit is contained in:
2026-05-18 23:25:05 +07:00
parent 1ee715cbe3
commit 73295c26fc
19 changed files with 213 additions and 409 deletions
+5 -10
View File
@@ -21,15 +21,13 @@ void xwayland_associate(struct wl_listener *listener, void *data)
absn_toplevel *toplevel = wl_container_of(listener, toplevel, xw_associate);
LISTEN(toplevel->map, toplevel_map, toplevel->xw->surface->events.map);
LISTEN(toplevel->unmap, toplevel_unmap,
toplevel->xw->surface->events.unmap);
LISTEN(toplevel->unmap, toplevel_unmap, toplevel->xw->surface->events.unmap);
}
void xwayland_dissociate(struct wl_listener *listener, void *data)
{
UNUSED(data);
absn_toplevel *toplevel =
wl_container_of(listener, toplevel, xw_dissociate);
absn_toplevel *toplevel = wl_container_of(listener, toplevel, xw_dissociate);
wl_list_remove(&toplevel->map.link);
wl_list_remove(&toplevel->unmap.link);
@@ -42,16 +40,13 @@ void xwayland_configure(struct wl_listener *listener, void *data)
struct wlr_xwayland_surface_configure_event *event = data;
if (!toplevel->xw->surface || !toplevel->xw->surface->mapped) {
wlr_xwayland_surface_configure(toplevel->xw, event->x, event->y,
event->width, event->height);
wlr_xwayland_surface_configure(toplevel->xw, event->x, event->y, event->width, event->height);
return;
}
if (toplevel_is_unmanaged(toplevel)) {
wlr_scene_node_set_position(&toplevel->scene_tree->node, event->x,
event->y);
wlr_xwayland_surface_configure(toplevel->xw, event->x, event->y,
event->width, event->height);
wlr_scene_node_set_position(&toplevel->scene_tree->node, event->x, event->y);
wlr_xwayland_surface_configure(toplevel->xw, event->x, event->y, event->width, event->height);
return;
}
}