summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-10 06:44:34 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-10 06:44:34 +0200
commit095a2cc16a60d447b76f8a0336d13c3b38257d59 (patch)
tree6b5246121e9a8c1b57abef66fd3be6cca5701b99
parentdce14b996185c2899c9c0d5f24748643d5fd2809 (diff)
downloadxK-095a2cc16a60d447b76f8a0336d13c3b38257d59.tar.gz
xK-095a2cc16a60d447b76f8a0336d13c3b38257d59.tar.xz
xK-095a2cc16a60d447b76f8a0336d13c3b38257d59.zip
degesch: fix a stupid segfault
-rw-r--r--degesch.c5
1 files changed, 4 insertions, 1 deletions
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;
}
}