mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-14 22:49:58 +00:00
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.
This commit is contained in:
parent
1a7a57f0d9
commit
81cadc725c
|
@ -1847,6 +1847,8 @@ surface_destroy(struct wl_listener *listener, void *data)
|
|||
struct weston_wm_window, surface_destroy_listener);
|
||||
|
||||
wm_log("surface for xid %d destroyed\n", window->id);
|
||||
|
||||
window->surface = NULL;
|
||||
}
|
||||
|
||||
static struct weston_wm_window *
|
||||
|
|
Loading…
Reference in a new issue