summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/layout.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-10-16 22:06:40 +0000
committernicm <nicm@openbsd.org>2016-10-16 22:06:40 +0000
commit2ae124fe486d7811b42e2daedf9d60322f1794d3 (patch)
tree3ba6edb7f45cafe7d15054b1d759a9425c8b0468 /usr.bin/tmux/layout.c
parentUse closefrom(4) in privsep parent and avoid some global file (diff)
downloadwireguard-openbsd-2ae124fe486d7811b42e2daedf9d60322f1794d3.tar.xz
wireguard-openbsd-2ae124fe486d7811b42e2daedf9d60322f1794d3.zip
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/layout.c')
-rw-r--r--usr.bin/tmux/layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c
index 491d956a6f8..1dc08541f5d 100644
--- a/usr.bin/tmux/layout.c
+++ b/usr.bin/tmux/layout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout.c,v 1.30 2016/10/10 17:28:30 nicm Exp $ */
+/* $OpenBSD: layout.c,v 1.31 2016/10/16 22:06:40 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -578,7 +578,7 @@ layout_resize_pane(struct window_pane *wp, enum layout_type type, int change,
/* Fix cell offsets. */
layout_fix_offsets(wp->window->layout_root);
layout_fix_panes(wp->window, wp->window->sx, wp->window->sy);
- notify_window_layout_changed(wp->window);
+ notify_window("window-layout-changed", wp->window);
}
/* Helper function to grow pane. */
@@ -980,5 +980,5 @@ layout_close_pane(struct window_pane *wp)
layout_fix_offsets(w->layout_root);
layout_fix_panes(w, w->sx, w->sy);
}
- notify_window_layout_changed(w);
+ notify_window("window-layout-changed", w);
}