mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 19:26:32 +00:00
dwl: don't destroy popup scene on unmap
Instead we disable it and destroy it at destroy time.
This commit is contained in:
parent
5493e0bbf2
commit
a92504d8bf
1 changed files with 3 additions and 1 deletions
4
dwl.c
4
dwl.c
|
@ -2447,7 +2447,7 @@ static void handle_im_popup_unmap(struct wl_listener *listener, void *data) {
|
|||
wl_container_of(listener, popup, popup_unmap);
|
||||
input_popup_update(popup);
|
||||
|
||||
wlr_scene_node_destroy(popup->scene);
|
||||
wlr_scene_node_set_enabled(popup->scene, 0);
|
||||
}
|
||||
|
||||
static void handle_im_popup_destroy(struct wl_listener *listener, void *data) {
|
||||
|
@ -2458,6 +2458,8 @@ static void handle_im_popup_destroy(struct wl_listener *listener, void *data) {
|
|||
wl_list_remove(&popup->popup_destroy.link);
|
||||
wl_list_remove(&popup->popup_unmap.link);
|
||||
wl_list_remove(&popup->popup_map.link);
|
||||
wlr_scene_node_destroy(popup->scene);
|
||||
|
||||
free(popup);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue