aboutsummaryrefslogtreecommitdiff
path: root/server-window.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-12-04 22:14:47 +0000
committerTiago Cunha <tcunha@gmx.com>2009-12-04 22:14:47 +0000
commitcc094fdfe6276b93683113f395edbc004837d362 (patch)
treec685b2f63461b2026d0677c4b8974e3004e114ff /server-window.c
parent1caa73afb4da381425160cbff68284a4dab1470b (diff)
downloadrtmux-cc094fdfe6276b93683113f395edbc004837d362.tar.gz
rtmux-cc094fdfe6276b93683113f395edbc004837d362.tar.bz2
rtmux-cc094fdfe6276b93683113f395edbc004837d362.zip
Sync OpenBSD patchset 581:
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
Diffstat (limited to 'server-window.c')
-rw-r--r--server-window.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/server-window.c b/server-window.c
index be863922..88002a3a 100644
--- a/server-window.c
+++ b/server-window.c
@@ -1,4 +1,4 @@
-/* $Id: server-window.c,v 1.12 2009-11-14 17:48:39 tcunha Exp $ */
+/* $Id: server-window.c,v 1.13 2009-12-04 22:14:47 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -81,7 +81,7 @@ server_window_loop(void)
s = ARRAY_ITEM(&sessions, j);
if (s == NULL || !session_has(s, w))
continue;
-
+
if (server_window_check_bell(s, w) ||
server_window_check_activity(s, w))
server_status_session(s);
@@ -121,7 +121,7 @@ server_window_check_bell(struct session *s, struct window *w)
tty_putcode(&c->tty, TTYC_BEL);
continue;
}
- if (c->session->curw->window == w) {
+ if (c->session->curw->window == w) {
status_message_set(c, "Bell in current window");
continue;
}
@@ -137,7 +137,7 @@ server_window_check_bell(struct session *s, struct window *w)
c = ARRAY_ITEM(&clients, i);
if (c == NULL || c->session != s)
continue;
- if (c->session->curw->window != w)
+ if (c->session->curw->window != w)
continue;
if (!visual) {
tty_putcode(&c->tty, TTYC_BEL);
@@ -163,7 +163,7 @@ server_window_check_activity(struct session *s, struct window *w)
if (s->curw->window == w)
return (0);
- if (!options_get_number(&w->options, "monitor-activity"))
+ if (!options_get_number(&w->options, "monitor-activity"))
return (0);
if (session_alert_has_window(s, w, WINDOW_ACTIVITY))
@@ -172,7 +172,7 @@ server_window_check_activity(struct session *s, struct window *w)
if (s->flags & SESSION_UNATTACHED)
return (0);
- if (options_get_number(&s->options, "visual-activity")) {
+ if (options_get_number(&s->options, "visual-activity")) {
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
c = ARRAY_ITEM(&clients, i);
if (c == NULL || c->session != s)
@@ -193,7 +193,7 @@ server_window_check_content(
struct client *c;
u_int i;
char *found, *ptr;
-
+
if (!(w->flags & WINDOW_ACTIVITY)) /* activity for new content */
return (0);
if (s->curw->window == w)
@@ -208,12 +208,12 @@ server_window_check_content(
if ((found = window_pane_search(wp, ptr, NULL)) == NULL)
return (0);
- xfree(found);
+ xfree(found);
session_alert_add(s, w, WINDOW_CONTENT);
if (s->flags & SESSION_UNATTACHED)
return (0);
- if (options_get_number(&s->options, "visual-content")) {
+ if (options_get_number(&s->options, "visual-content")) {
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
c = ARRAY_ITEM(&clients, i);
if (c == NULL || c->session != s)