summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-10-16 22:06:41 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-10-16 22:06:41 +0000
commitdd710358400562e21af7c99f0af8e30112a967f8 (patch)
tree6d1f0d78f02d2464887c89f626277be197e72f57 /usr.bin/tmux/window.c
parent682bdbaa44332449efd70c28f021e0a61033aa50 (diff)
Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index bd08b40dffc..e8dd853000b 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.171 2016/10/15 09:27:52 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.172 2016/10/16 22:06:40 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);
}