diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-05-04 10:01:12 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-05-04 10:01:12 +0100 |
commit | f3221941f27dbe4dbee550f72d42f268c228f5d1 (patch) | |
tree | 2a980862da9efc8bd1e540d71e112c020147e7ae /window.c | |
parent | 97ecb4f9d8392f48deb810a557142eb97d5345dc (diff) | |
parent | d98d31690354ec6b53206c0b24834c877cd8ad5a (diff) | |
download | rtmux-f3221941f27dbe4dbee550f72d42f268c228f5d1.tar.gz rtmux-f3221941f27dbe4dbee550f72d42f268c228f5d1.tar.bz2 rtmux-f3221941f27dbe4dbee550f72d42f268c228f5d1.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -355,6 +355,8 @@ window_create_spawn(const char *name, int argc, char **argv, const char *path, } else w->name = default_window_name(w); + notify_window("window-pane-changed", w); + return (w); } @@ -441,11 +443,14 @@ window_set_active_pane(struct window *w, struct window_pane *wp) w->active = TAILQ_PREV(w->active, window_panes, entry); if (w->active == NULL) w->active = TAILQ_LAST(&w->panes, window_panes); - if (w->active == wp) + if (w->active == wp) { + notify_window("window-pane-changed", w); return (1); + } } w->active->active_point = next_active_point++; w->active->flags |= PANE_CHANGED; + notify_window("window-pane-changed", w); return (1); } @@ -621,8 +626,10 @@ window_lost_pane(struct window *w, struct window_pane *wp) if (w->active == NULL) w->active = TAILQ_NEXT(wp, entry); } - if (w->active != NULL) + if (w->active != NULL) { w->active->flags |= PANE_CHANGED; + notify_window("window-pane-changed", w); + } } else if (wp == w->last) w->last = NULL; } @@ -1196,6 +1203,7 @@ window_pane_set_mode(struct window_pane *wp, const struct window_mode *mode) wp->flags |= (PANE_REDRAW|PANE_CHANGED); server_status_window(wp->window); + notify_pane("pane-mode-changed", wp); return (0); } @@ -1215,6 +1223,7 @@ window_pane_reset_mode(struct window_pane *wp) wp->flags |= (PANE_REDRAW|PANE_CHANGED); server_status_window(wp->window); + notify_pane("pane-mode-changed", wp); } void |