This commit is contained in:
2026-01-10 19:54:53 +07:00
parent 81e8a9d331
commit f603e09530
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ void server_new_xdg_popup(struct wl_listener *listener, void *data)
popup->xdg_popup = xdg_popup; popup->xdg_popup = xdg_popup;
struct wlr_xdg_surface *parent = wlr_xdg_surface_try_from_wlr_surface(xdg_popup->parent); struct wlr_xdg_surface *parent = wlr_xdg_surface_try_from_wlr_surface(xdg_popup->parent);
assert(parent != NULL); struct absinthe_toplevel *parent_toplevel = parent->data;
struct wlr_scene_tree *parent_tree = parent->data; struct wlr_scene_tree *parent_tree = parent_toplevel->scene_tree;
xdg_popup->base->data = wlr_scene_xdg_surface_create(parent_tree, xdg_popup->base); xdg_popup->base->data = wlr_scene_xdg_surface_create(parent_tree, xdg_popup->base);
popup->commit.notify = xdg_popup_commit; popup->commit.notify = xdg_popup_commit;
+1 -1
View File
@@ -14,7 +14,7 @@ void xdg_popup_commit(struct wl_listener *listener, void *data)
void xdg_popup_destroy(struct wl_listener *listener, void *data) void xdg_popup_destroy(struct wl_listener *listener, void *data)
{ {
struct absinthe_popup *popup = wl_container_of(listener, popup, commit); struct absinthe_popup *popup = wl_container_of(listener, popup, destroy);
wl_list_remove(&popup->commit.link); wl_list_remove(&popup->commit.link);
wl_list_remove(&popup->destroy.link); wl_list_remove(&popup->destroy.link);