degesch: better terminal suspension

Don't print date changes while something else is using the terminal.
This commit is contained in:
Přemysl Eric Janouch 2015-11-22 16:43:21 +01:00
parent 0fdffa0e50
commit 385de6f4fe
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}