mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Some new notifications, mainly for active pane and current window and
session: pane-mode-changed window-pane-changed client-session-changed session-window-changed From Joshua Brot.
This commit is contained in:
6
notify.c
6
notify.c
@ -79,8 +79,12 @@ notify_callback(struct cmdq_item *item, void *data)
|
||||
|
||||
log_debug("%s: %s", __func__, ne->name);
|
||||
|
||||
if (strcmp(ne->name, "pane-mode-changed") == 0)
|
||||
control_notify_pane_mode_changed(ne->pane);
|
||||
if (strcmp(ne->name, "window-layout-changed") == 0)
|
||||
control_notify_window_layout_changed(ne->window);
|
||||
if (strcmp(ne->name, "window-pane-changed") == 0)
|
||||
control_notify_window_pane_changed(ne->window);
|
||||
if (strcmp(ne->name, "window-unlinked") == 0)
|
||||
control_notify_window_unlinked(ne->session, ne->window);
|
||||
if (strcmp(ne->name, "window-linked") == 0)
|
||||
@ -95,6 +99,8 @@ notify_callback(struct cmdq_item *item, void *data)
|
||||
control_notify_session_created(ne->session);
|
||||
if (strcmp(ne->name, "session-closed") == 0)
|
||||
control_notify_session_closed(ne->session);
|
||||
if (strcmp(ne->name, "session-window-changed") == 0)
|
||||
control_notify_session_window_changed(ne->session);
|
||||
|
||||
notify_hook(item, ne);
|
||||
|
||||
|
Reference in New Issue
Block a user