summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-03-27 17:19:39 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-03-27 17:19:39 +0200
commit01f9bcbaba44b87bd8d59af6c4ee19539cbfe13c (patch)
treeef736c0dfd19e6491198b7c519fd340d7c6610b6 /src/gui/curses
parent6fb6fad7e99cc8cfc5b61352f864dcc14e673e5d (diff)
downloadweechat-01f9bcbaba44b87bd8d59af6c4ee19539cbfe13c.zip
core: fix bad window size on startup with some terminals like kitty (closes #1769)
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c
index 12b400cca..bb36c64fa 100644
--- a/src/gui/curses/gui-curses-main.c
+++ b/src/gui/curses/gui-curses-main.c
@@ -409,7 +409,10 @@ gui_main_loop ()
/* catch SIGWINCH signal: redraw screen */
if (!weechat_headless)
+ {
+ gui_signal_sigwinch_received = 1;
signal_catch (SIGWINCH, &gui_main_signal_sigwinch);
+ }
/* hook stdin (read keyboard) */
if (weechat_headless)