summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-16 22:06:40 +0000
committernicm <nicm>2016-10-16 22:06:40 +0000
commit41e633acf5d08cbd8976771bd2b74f14abda3969 (patch)
tree70b43438375ebfaf1cddab734b1913658ade661b /window.c
parentd15d54c2c8e6b95695169442eb2a27d814efc078 (diff)
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.c b/window.c
index b217f48b..2c221f43 100644
--- a/window.c
+++ b/window.c
@@ -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);
}