diff options
author | nicm <nicm> | 2016-10-16 22:06:40 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-16 22:06:40 +0000 |
commit | 41e633acf5d08cbd8976771bd2b74f14abda3969 (patch) | |
tree | 70b43438375ebfaf1cddab734b1913658ade661b /window.c | |
parent | d15d54c2c8e6b95695169442eb2a27d814efc078 (diff) | |
download | rtmux-41e633acf5d08cbd8976771bd2b74f14abda3969.tar.gz rtmux-41e633acf5d08cbd8976771bd2b74f14abda3969.tar.bz2 rtmux-41e633acf5d08cbd8976771bd2b74f14abda3969.zip |
Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -390,7 +390,7 @@ window_set_name(struct window *w, const char *new_name) { free(w->name); w->name = xstrdup(new_name); - notify_window_renamed(w); + notify_window("window-renamed", w); } void @@ -532,7 +532,7 @@ window_zoom(struct window_pane *wp) w->saved_layout_root = w->layout_root; layout_init(w, wp); w->flags |= WINDOW_ZOOMED; - notify_window_layout_changed(w); + notify_window("window-layout-changed", w); return (0); } @@ -555,7 +555,7 @@ window_unzoom(struct window *w) wp->saved_layout_cell = NULL; } layout_fix_panes(w, w->sx, w->sy); - notify_window_layout_changed(w); + notify_window("window-layout-changed", w); return (0); } |