Sync OpenBSD patchset 1069:

Add notify hooks for various events, the functions are currently empty
stubs but will be filled in for control mode later. From George Nachman.
This commit is contained in:
Tiago Cunha
2012-03-18 02:22:09 +00:00
parent ba7278373d
commit f41efd9d89
14 changed files with 101 additions and 2 deletions

View File

@ -293,6 +293,7 @@ server_link_window(struct session *src, struct winlink *srcwl,
* 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 @@ server_destroy_session(struct session *s)
} else {
c->last_session = NULL;
c->session = s_new;
notify_attached_session_changed(c);
session_update_activity(s_new);
server_redraw_client(c);
}