diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-03-04 09:01:30 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-03-04 09:01:30 +0000 |
commit | 1da64bf786d2f139b822bc80ef6043443c0ea720 (patch) | |
tree | 6de27276106902295095407679feea7d7ec269ab | |
parent | 1cb1fb5bd401cf26568a2dc480a8548af3b43930 (diff) | |
download | rtmux-1da64bf786d2f139b822bc80ef6043443c0ea720.tar.gz rtmux-1da64bf786d2f139b822bc80ef6043443c0ea720.tar.bz2 rtmux-1da64bf786d2f139b822bc80ef6043443c0ea720.zip |
Remove some unused/unnecessary control notifications, from George Nachman.
-rw-r--r-- | control-notify.c | 13 |
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); } } |