summaryrefslogtreecommitdiffstats
path: root/notify.c
diff options
context:
space:
mode:
authornicm <nicm>2017-05-04 07:16:43 +0000
committernicm <nicm>2017-05-04 07:16:43 +0000
commitd98d31690354ec6b53206c0b24834c877cd8ad5a (patch)
tree8d63d0b30f4742990a6e687d4569f9981c3182a4 /notify.c
parentca6a121e63c61eb45a81dc7318ed290b8dca45e6 (diff)
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.
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/notify.c b/notify.c
index 78278e09..9d3a91e3 100644
--- a/notify.c
+++ b/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);