aboutsummaryrefslogtreecommitdiff
path: root/tty-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-18 12:09:42 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-18 12:09:42 +0000
commit8ea49712fd4c9f158128832e6c93308afeb1bd4d (patch)
treea7a4e84c2722ba9f3848f4bbe377c1e38ed14d1c /tty-write.c
parent273d63040ab6f0124518fcdb1ad9f2f10c84c2de (diff)
downloadrtmux-8ea49712fd4c9f158128832e6c93308afeb1bd4d.tar.gz
rtmux-8ea49712fd4c9f158128832e6c93308afeb1bd4d.tar.bz2
rtmux-8ea49712fd4c9f158128832e6c93308afeb1bd4d.zip
suspend-client command and suspend client when ^Z key binding is used.
Diffstat (limited to 'tty-write.c')
-rw-r--r--tty-write.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty-write.c b/tty-write.c
index a776ca57..62adb8b2 100644
--- a/tty-write.c
+++ b/tty-write.c
@@ -1,4 +1,4 @@
-/* $Id: tty-write.c,v 1.6 2009-01-14 19:29:32 nicm Exp $ */
+/* $Id: tty-write.c,v 1.7 2009-01-18 12:09:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -45,6 +45,8 @@ tty_vwrite_window(void *ptr, enum tty_cmd cmd, va_list ap)
c = ARRAY_ITEM(&clients, i);
if (c == NULL || c->session == NULL)
continue;
+ if (c->flags & CLIENT_SUSPENDED)
+ continue;
if (c->session->curw->window == wp->window) {
va_copy(aq, ap);