<div dir="ltr">This fixes the bug found by Axel (<a href="http://lists.freedesktop.org/archives/wayland-devel/2013-September/011066.html">http://lists.freedesktop.org/archives/wayland-devel/2013-September/011066.html</a>).</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/17 Giulio Camuffo <span dir="ltr"><<a href="mailto:giuliocamuffo@gmail.com" target="_blank">giuliocamuffo@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the unmap event will be followed by the deletion of the weston_surface,<br>
so the shell_surface will also be deleted by the shell. Having removed<br>
the surface_destroy_listener, the surface_destroy callback doesn't<br>
get called, so reset the value of shsurf here.<br>
---<br>
 src/xwayland/window-manager.c | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c<br>
index b4f64d3..3b88dac 100644<br>
--- a/src/xwayland/window-manager.c<br>
+++ b/src/xwayland/window-manager.c<br>
@@ -877,6 +877,7 @@ weston_wm_handle_unmap_notify(struct weston_wm *wm, xcb_generic_event_t *event)<br>
        if (window->surface)<br>
                wl_list_remove(&window->surface_destroy_listener.link);<br>
        window->surface = NULL;<br>
+       window->shsurf = NULL;<br>
        xcb_unmap_window(wm->conn, window->frame_id);<br>
 }<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.8.4<br>
<br>
</font></span></blockquote></div><br></div>