diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/curses/gui-curses-main.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c index 818ca58e2..f5940aa69 100644 --- a/src/gui/curses/gui-curses-main.c +++ b/src/gui/curses/gui-curses-main.c @@ -60,6 +60,7 @@ int gui_reload_config = 0; +int gui_signal_sigwinch_received = 0; int gui_term_cols = 0; int gui_term_lines = 0; @@ -296,9 +297,9 @@ gui_main_signal_sighup () void gui_main_signal_sigwinch () { - gui_window_ask_refresh (2); + gui_signal_sigwinch_received = 1; - hook_signal_send ("signal_sigwinch", WEECHAT_HOOK_SIGNAL_STRING, NULL); + gui_window_ask_refresh (2); } /* @@ -478,6 +479,13 @@ gui_main_loop () if (gui_window_refresh_needed) gui_main_refreshs (); + if (gui_signal_sigwinch_received) + { + hook_signal_send ("signal_sigwinch", + WEECHAT_HOOK_SIGNAL_STRING, NULL); + gui_signal_sigwinch_received = 0; + } + gui_color_pairs_auto_reset_pending = 0; /* wait for keyboard or network activity */ |