<div dir="ltr">Ignore this one, i made a bit of mess with rebase.<div><br></div><div>Sorry for the noise</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/11 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">we may still get events from x, so  by setting those fields to NULL<br>
we make sure we don't try to use destroyed objects.<br>
---<br>
 src/xwayland/window-manager.c | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c<br>
index e1f26f6..912553e 100644<br>
--- a/src/xwayland/window-manager.c<br>
+++ b/src/xwayland/window-manager.c<br>
@@ -1878,6 +1878,9 @@ surface_destroy(struct wl_listener *listener, void *data)<br>
                container_of(listener,<br>
                             struct weston_wm_window, surface_destroy_listener);<br>
<br>
+       window->surface = NULL;<br>
+       /* This should have been freed by the shell */<br>
+       window->shsurf = NULL;<br>
        wm_log("surface for xid %d destroyed\n", window->id);<br>
<br>
        window->surface = NULL;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.4<br>
<br>
</font></span></blockquote></div><br></div>