session_flush can go bye-bye again.

This commit is contained in:
Nicholas Marriott
2007-08-27 20:36:52 +00:00
parent 438144692d
commit 12f7197adb
4 changed files with 9 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: server.c,v 1.7 2007-08-27 15:28:07 nicm Exp $ */
/* $Id: server.c,v 1.8 2007-08-27 20:36:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -667,11 +667,8 @@ lost_window(struct window *w)
if (!session_has(s, w))
continue;
/* Detach window from session. */
session_detach(s, w);
/* Try to flush session and either redraw or kill clients. */
destroyed = session_flush(s);
/* Detach window and either redraw or kill clients. */
destroyed = session_detach(s, w);
for (j = 0; j < ARRAY_LENGTH(&clients); j++) {
c = ARRAY_ITEM(&clients, j);
if (c == NULL || c->session != s)