commit | c9571fbd3aae7d73ef68d4c578b2767ffdbf85d5 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Tue May 29 15:35:29 2012 -0400 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Tue May 29 15:35:29 2012 -0400 |
tree | 16b6a2e47bac3179799c9b0b22b96e107184232c | |
parent | 053be42a4ed4910e5d1f4c89c94a8d04da4842b9 [diff] |
xwm: Reset wm->focus_window when the focused window is destroyed
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c index 334b584..dbab20f 100644 --- a/src/xwayland/window-manager.c +++ b/src/xwayland/window-manager.c
@@ -740,6 +740,9 @@ xcb_destroy_window(wm->conn, window->frame_id); if (window->surface) wl_list_remove(&window->surface_destroy_listener.link); + if (wm->focus_window == window) + wm->focus_window = NULL; + free(window); }