=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/server-fn.c,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- src/usr.bin/tmux/server-fn.c 2012/03/17 18:24:07 1.54 +++ src/usr.bin/tmux/server-fn.c 2012/03/17 22:35:09 1.55 @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.54 2012/03/17 18:24:07 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.55 2012/03/17 22:35:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -293,6 +293,7 @@ * Can't use session_detach as it will destroy session * if this makes it empty. */ + notify_window_unlinked(dst, dstwl->window); dstwl->flags &= ~WINLINK_ALERTFLAGS; winlink_stack_remove(&dst->lastw, dstwl); winlink_remove(&dst->windows, dstwl); @@ -419,6 +420,7 @@ } else { c->last_session = NULL; c->session = s_new; + notify_attached_session_changed(c); session_update_activity(s_new); server_redraw_client(c); }