mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-12 06:59:05 +02:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user