xwm: Set window->surface to NULL when surface goes away
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 3 Sep 2013 23:15:42 +0000 (16:15 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 4 Sep 2013 03:57:18 +0000 (20:57 -0700)
commit81cadc725cbfeef2cd60574cf6859be595965873
tree836be5e1c944f15a3a12b9abfea654d9fc105b00
parent1a7a57f0d959192b14237cd5051f8cdde2a2d39f
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.
src/xwayland/window-manager.c