diff --git a/client.c b/client.c index 075df434e..38faafe59 100644 --- a/client.c +++ b/client.c @@ -625,6 +625,9 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen, xcb_change_window_attributes(globalconf.connection, w, XCB_CW_EVENT_MASK, select_input_val); + /* Make sure the window is automatically mapped if awesome exits or dies. */ + xcb_change_save_set(globalconf.connection, XCB_SET_MODE_INSERT, w); + client_t *c = client_new(globalconf.L); /* This cannot change, ever. */