aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-02-17 12:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2022-02-17 12:01:10 +0000
commit88d9a8fc053a6653c78211690e5796c601bdba01 (patch)
treec2c05934aa0ebe88a9f88c0e3dfe5572806c4fbb
parent722f395e61f1ded4d1d9506688f3240cff933435 (diff)
parent818b2176ef52a13867905d3d3e0269dc1b4d6fb4 (diff)
downloadrtmux-88d9a8fc053a6653c78211690e5796c601bdba01.tar.gz
rtmux-88d9a8fc053a6653c78211690e5796c601bdba01.tar.bz2
rtmux-88d9a8fc053a6653c78211690e5796c601bdba01.zip
Merge branch 'obsd-master' into master
-rw-r--r--options-table.c1
-rw-r--r--resize.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c
index c8ae046e..b8a5ccbb 100644
--- a/options-table.c
+++ b/options-table.c
@@ -1245,6 +1245,7 @@ const struct options_table_entry options_table[] = {
OPTIONS_TABLE_HOOK("window-linked", ""),
OPTIONS_TABLE_WINDOW_HOOK("window-pane-changed", ""),
OPTIONS_TABLE_WINDOW_HOOK("window-renamed", ""),
+ OPTIONS_TABLE_WINDOW_HOOK("window-resized", ""),
OPTIONS_TABLE_HOOK("window-unlinked", ""),
{ .name = NULL }
diff --git a/resize.c b/resize.c
index 18a02adb..457fee0a 100644
--- a/resize.c
+++ b/resize.c
@@ -61,6 +61,7 @@ resize_window(struct window *w, u_int sx, u_int sy, int xpixel, int ypixel)
tty_update_window_offset(w);
server_redraw_window(w);
notify_window("window-layout-changed", w);
+ notify_window("window-resized", w);
w->flags &= ~WINDOW_RESIZE;
}