diff options
author | nicm <nicm> | 2022-02-17 09:58:47 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-02-17 09:58:47 +0000 |
commit | 818b2176ef52a13867905d3d3e0269dc1b4d6fb4 (patch) | |
tree | 8612d1af5aae8daee20b5c26b753abdf35ee3b27 | |
parent | 0027ee13a089efe7d1db1a4cfedb9b801635ded8 (diff) | |
download | rtmux-818b2176ef52a13867905d3d3e0269dc1b4d6fb4.tar.gz rtmux-818b2176ef52a13867905d3d3e0269dc1b4d6fb4.tar.bz2 rtmux-818b2176ef52a13867905d3d3e0269dc1b4d6fb4.zip |
Add a window-resized hook which is fired when the window is actually
resized which may be later than the client resize, GitHub issue 2995.
-rw-r--r-- | options-table.c | 1 | ||||
-rw-r--r-- | resize.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c index 62d37c39..6d136f76 100644 --- a/options-table.c +++ b/options-table.c @@ -1246,6 +1246,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 } @@ -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; } |