diff options
| author | 2017-05-15 14:57:29 +0000 | |
|---|---|---|
| committer | 2017-05-15 14:57:29 +0000 | |
| commit | 4d1548736b7221e36a5258a218f4e6e73a70b1ac (patch) | |
| tree | 6d00a265710b11fb53c964a8b81e07b470bec7d7 /usr.bin/tmux/layout-set.c | |
| parent | Remove unused variable mobileip_softc_list. (diff) | |
| download | wireguard-openbsd-4d1548736b7221e36a5258a218f4e6e73a70b1ac.tar.xz wireguard-openbsd-4d1548736b7221e36a5258a218f4e6e73a70b1ac.zip | |
Notify layout changed when choosing predefined layouts, from Joshua Brot.
Diffstat (limited to 'usr.bin/tmux/layout-set.c')
| -rw-r--r-- | usr.bin/tmux/layout-set.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/tmux/layout-set.c b/usr.bin/tmux/layout-set.c index 148c41efab1..dae3d5a3ddc 100644 --- a/usr.bin/tmux/layout-set.c +++ b/usr.bin/tmux/layout-set.c @@ -1,4 +1,4 @@ -/* $OpenBSD: layout-set.c,v 1.17 2016/10/11 13:45:47 nicm Exp $ */ +/* $OpenBSD: layout-set.c,v 1.18 2017/05/15 14:57:29 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -165,6 +165,7 @@ layout_set_even_h(struct window *w) layout_print_cell(w->layout_root, __func__, 1); + notify_window("window-layout-changed", w); server_redraw_window(w); } @@ -219,6 +220,7 @@ layout_set_even_v(struct window *w) layout_print_cell(w->layout_root, __func__, 1); + notify_window("window-layout-changed", w); server_redraw_window(w); } @@ -342,6 +344,7 @@ layout_set_main_h(struct window *w) layout_print_cell(w->layout_root, __func__, 1); + notify_window("window-layout-changed", w); server_redraw_window(w); } @@ -465,6 +468,7 @@ layout_set_main_v(struct window *w) layout_print_cell(w->layout_root, __func__, 1); + notify_window("window-layout-changed", w); server_redraw_window(w); } @@ -567,5 +571,6 @@ layout_set_tiled(struct window *w) layout_print_cell(w->layout_root, __func__, 1); + notify_window("window-layout-changed", w); server_redraw_window(w); } |
