summaryrefslogtreecommitdiffstats
path: root/control-notify.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-25 10:04:23 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-25 10:04:23 +0000
commit2c14a771a8c399f6a0e24bc619006c1dd85a7ede (patch)
tree46db964bd8aa7d92cd5a9993745dca62768d7fb1 /control-notify.c
parentd39b1a87a5e88444614415398510ff445a0748d6 (diff)
Remove some unused/unnecessary control notifications, from George Nachman.
Diffstat (limited to 'control-notify.c')
-rw-r--r--control-notify.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/control-notify.c b/control-notify.c
index 87a25bb1..bb9708c8 100644
--- a/control-notify.c
+++ b/control-notify.c
@@ -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);
}
}