summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-11-22 16:43:21 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-11-22 16:43:21 +0100
commit385de6f4fe796fc480bf983decd742c338daa8d8 (patch)
tree017522707cc8681c54373be4fd2851580ded85ed /degesch.c
parent0fdffa0e50036171fa6a2c7c225b035a6f4a6058 (diff)
downloadxK-385de6f4fe796fc480bf983decd742c338daa8d8.tar.gz
xK-385de6f4fe796fc480bf983decd742c338daa8d8.tar.xz
xK-385de6f4fe796fc480bf983decd742c338daa8d8.zip
degesch: better terminal suspension
Don't print date changes while something else is using the terminal.
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/degesch.c b/degesch.c
index 5dc902c..436e9eb 100644
--- a/degesch.c
+++ b/degesch.c
@@ -9989,7 +9989,6 @@ suspend_terminal (struct app_context *ctx)
toggle_bracketed_paste (false);
input_hide (&ctx->input);
poller_fd_reset (&ctx->tty_event);
- // TODO: also disable the date change timer
}
static void
@@ -11023,7 +11022,8 @@ rearm_date_change_timer (struct app_context *ctx)
static void
on_date_change_timer (struct app_context *ctx)
{
- buffer_update_time (ctx, time (NULL));
+ if (!ctx->terminal_suspended)
+ buffer_update_time (ctx, time (NULL));
rearm_date_change_timer (ctx);
}