aboutsummaryrefslogtreecommitdiff
path: root/rootston/xdg_shell.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-04 07:28:10 -0400
committerGitHub <noreply@github.com>2018-05-04 07:28:10 -0400
commitbf793a68c1e62a7634c22681b33c33fa557df916 (patch)
tree7ef90ee2220baaf388268a9ebfdbe70e9f917355 /rootston/xdg_shell.c
parentd0a939243b61e596fce1a654585244209d06f042 (diff)
parent393f7aaeff7485f78de9c27f62eefe70d76fabf4 (diff)
Merge pull request #950 from emersion/fix-xdg-popup-not-topmost-segfault
Fix a rootston crash when a client creates non-topmost popups
Diffstat (limited to 'rootston/xdg_shell.c')
-rw-r--r--rootston/xdg_shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootston/xdg_shell.c b/rootston/xdg_shell.c
index bd670a87..83a1caf0 100644
--- a/rootston/xdg_shell.c
+++ b/rootston/xdg_shell.c
@@ -18,6 +18,8 @@ static void popup_destroy(struct roots_view_child *child) {
}
wl_list_remove(&popup->destroy.link);
wl_list_remove(&popup->new_popup.link);
+ wl_list_remove(&popup->map.link);
+ wl_list_remove(&popup->unmap.link);
view_child_finish(&popup->view_child);
free(popup);
}