diff options
author | 2013-03-25 10:04:23 +0000 | |
---|---|---|
committer | 2013-03-25 10:04:23 +0000 | |
commit | d734d24918356ef33cefd15aba60db25abf25f64 (patch) | |
tree | 79a3058397249d427ce768741cef90f695a32eea /usr.bin/tmux/control-notify.c | |
parent | Add -q flags to shut up errors to capture-pane and show-options, from (diff) | |
download | wireguard-openbsd-d734d24918356ef33cefd15aba60db25abf25f64.tar.xz wireguard-openbsd-d734d24918356ef33cefd15aba60db25abf25f64.zip |
Remove some unused/unnecessary control notifications, from George Nachman.
Diffstat (limited to 'usr.bin/tmux/control-notify.c')
-rw-r--r-- | usr.bin/tmux/control-notify.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/usr.bin/tmux/control-notify.c b/usr.bin/tmux/control-notify.c index f23d4618c99..93a8659a453 100644 --- a/usr.bin/tmux/control-notify.c +++ b/usr.bin/tmux/control-notify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control-notify.c,v 1.2 2012/09/25 07:41:22 nicm Exp $ */ +/* $OpenBSD: control-notify.c,v 1.3 2013/03/25 10:04:23 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott <nicm@users.sourceforge.net> @@ -104,10 +104,7 @@ control_notify_window_unlinked(unused struct session *s, struct window *w) continue; cs = c->session; - if (winlink_find_by_window_id(&cs->windows, w->id) != NULL) - control_write(c, "%%window-close %u", w->id); - else - control_write(c, "%%unlinked-window-close %u", w->id); + control_write(c, "%%window-close %u", w->id); } } @@ -144,13 +141,7 @@ control_notify_window_renamed(struct window *w) continue; s = c->session; - if (winlink_find_by_window_id(&s->windows, w->id) != NULL) { - control_write(c, "%%window-renamed %u %s", - w->id, w->name); - } else { - control_write(c, "%%unlinked-window-renamed %u %s", - w->id, w->name); - } + control_write(c, "%%window-renamed %u %s", w->id, w->name); } } |