popups
This commit is contained in:
+2
-2
@@ -93,8 +93,8 @@ void server_new_xdg_popup(struct wl_listener *listener, void *data)
|
||||
popup->xdg_popup = xdg_popup;
|
||||
|
||||
struct wlr_xdg_surface *parent = wlr_xdg_surface_try_from_wlr_surface(xdg_popup->parent);
|
||||
assert(parent != NULL);
|
||||
struct wlr_scene_tree *parent_tree = parent->data;
|
||||
struct absinthe_toplevel *parent_toplevel = 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);
|
||||
|
||||
popup->commit.notify = xdg_popup_commit;
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ void xdg_popup_commit(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->destroy.link);
|
||||
|
||||
Reference in New Issue
Block a user