From 095a2cc16a60d447b76f8a0336d13c3b38257d59 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 10 May 2015 06:44:34 +0200 Subject: degesch: fix a stupid segfault --- degesch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index 2c300b2..924032f 100644 --- a/degesch.c +++ b/degesch.c @@ -6259,8 +6259,11 @@ on_signal_pipe_readable (const struct pollfd *fd, struct app_context *ctx) if (g_winch_received) { - input_on_terminal_resized (&ctx->input); + if (ctx->input.active) + input_on_terminal_resized (&ctx->input); + update_screen_size (); + g_winch_received = false; } } -- cgit v1.2.3-70-g09d2