diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-05-30 12:54:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-05-30 12:54:10 +0000 |
commit | 3287dab9dc5ce4e28553513a3f6562a09c271b11 (patch) | |
tree | cff5a83098bf812800eececf32c3be5aba766e5f /usr.bin | |
parent | 8b8765d45aa335a51b14483f19fc6ef34a3a341d (diff) |
Emit window-layout-changed on swap-pane, from George Nachman.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/cmd-swap-pane.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-swap-pane.c b/usr.bin/tmux/cmd-swap-pane.c index e39b03125f6..77358102daa 100644 --- a/usr.bin/tmux/cmd-swap-pane.c +++ b/usr.bin/tmux/cmd-swap-pane.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-swap-pane.c,v 1.40 2021/08/21 10:22:39 nicm Exp $ */ +/* $OpenBSD: cmd-swap-pane.c,v 1.41 2022/05/30 12:54:09 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -135,6 +135,9 @@ cmd_swap_pane_exec(struct cmd *self, struct cmdq_item *item) } server_redraw_window(src_w); server_redraw_window(dst_w); + notify_window("window-layout-changed", src_w); + if (src_w != dst_w) + notify_window("window-layout-changed", dst_w); out: if (window_pop_zoom(src_w)) |