degesch: better handling of terminal suspension
This commit is contained in:
parent
25bb7a978d
commit
37e9165548
|
@ -3071,7 +3071,7 @@ log_formatter (struct app_context *ctx,
|
||||||
can_leak = true;
|
can_leak = true;
|
||||||
|
|
||||||
bool displayed = true;
|
bool displayed = true;
|
||||||
if (ctx->running_backlog_helper)
|
if (ctx->terminal_suspended > 0)
|
||||||
// Another process is using the terminal
|
// Another process is using the terminal
|
||||||
displayed = false;
|
displayed = false;
|
||||||
else if (buffer == ctx->current_buffer)
|
else if (buffer == ctx->current_buffer)
|
||||||
|
@ -11101,7 +11101,7 @@ rearm_date_change_timer (struct app_context *ctx)
|
||||||
static void
|
static void
|
||||||
on_date_change_timer (struct app_context *ctx)
|
on_date_change_timer (struct app_context *ctx)
|
||||||
{
|
{
|
||||||
if (!ctx->terminal_suspended)
|
if (ctx->terminal_suspended <= 0)
|
||||||
buffer_update_time (ctx, time (NULL));
|
buffer_update_time (ctx, time (NULL));
|
||||||
rearm_date_change_timer (ctx);
|
rearm_date_change_timer (ctx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue