summaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-22 18:36:47 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-22 18:36:47 +1000
commit6deb7268738699ba9d654db5aba53866184f1fda (patch)
tree2b0aba9ba2012952ad774aab8a120cb0a5d9ddeb /include/sway/tree/view.h
parentMerge pull request #2913 from emersion/fix-swaybar-hotplug (diff)
downloadsway-6deb7268738699ba9d654db5aba53866184f1fda.tar.gz
sway-6deb7268738699ba9d654db5aba53866184f1fda.tar.zst
sway-6deb7268738699ba9d654db5aba53866184f1fda.zip
Fix crash when quitting a QT app on the wayland backend using menu
QT unmaps the view before destroying the popup. We destroyed the popup in response to the view unmapping, but then we'd attempt to destroy it a second time which caused a crash. The patch removes the listener. I tested it with GTK as well, and can confirm the popup is still being destroyed.
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index dc1f0b02..a0b4dd46 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -226,7 +226,6 @@ struct sway_view_child {
226 struct wl_listener surface_map; 226 struct wl_listener surface_map;
227 struct wl_listener surface_unmap; 227 struct wl_listener surface_unmap;
228 struct wl_listener surface_destroy; 228 struct wl_listener surface_destroy;
229 struct wl_listener view_unmap;
230}; 229};
231 230
232struct sway_xdg_popup_v6 { 231struct sway_xdg_popup_v6 {