compositor: add wlr_surface_role.no_object

This commit allows to make a role as not represented by an object,
which fixes calling role commit handlers for roles like cursor
surfaces.

Fixes: 099b9de752
This commit is contained in:
Kirill Primak 2023-06-07 09:34:19 +03:00 committed by Simon Ser
parent 2d9659d765
commit 753f3cc4fa
5 changed files with 18 additions and 1 deletions

View file

@ -79,6 +79,7 @@ static void pointer_cursor_surface_handle_commit(struct wlr_surface *surface) {
static const struct wlr_surface_role pointer_cursor_surface_role = {
.name = "wl_pointer-cursor",
.no_object = true,
.commit = pointer_cursor_surface_handle_commit,
};