summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-08-27 20:36:52 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-08-27 20:36:52 +0000
commit12f7197adbf37a430266ecbe355ebb568b69eeb6 (patch)
tree7454819c0af734f6346ab4180836b99044d06e63 /server.c
parent438144692dba1aabd34d3253be61b461f15e5e6d (diff)
session_flush can go bye-bye again.
Diffstat (limited to 'server.c')
-rw-r--r--server.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/server.c b/server.c
index 411f9f13..b386ebba 100644
--- a/server.c
+++ b/server.c
@@ -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)