xwm: Set window->surface to NULL when surface goes away

Otherwise we may end up trying to remove the destroy listener if we
get the surface_destroy callback before the unmap_notify.
dev
Kristian Høgsberg 11 years ago
parent 1a7a57f0d9
commit 81cadc725c
  1. 2
      src/xwayland/window-manager.c

@ -1847,6 +1847,8 @@ surface_destroy(struct wl_listener *listener, void *data)
struct weston_wm_window, surface_destroy_listener); struct weston_wm_window, surface_destroy_listener);
wm_log("surface for xid %d destroyed\n", window->id); wm_log("surface for xid %d destroyed\n", window->id);
window->surface = NULL;
} }
static struct weston_wm_window * static struct weston_wm_window *

Loading…
Cancel
Save