Skip to content

Commit a78f476

Browse files
committed
Only emit damage event if there's actual damage on updateTitle
1 parent 018afe9 commit a78f476

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontends/rioterm/src/application.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,10 @@ impl ApplicationHandler<EventPayload> for Application<'_> {
244244
if let Some(terminal) =
245245
grid_context.context().terminal.try_lock_unfair()
246246
{
247-
terminal.emit_damage_event();
247+
// Only emit damage event if there's actual damage
248+
if terminal.peek_damage_event().is_some() {
249+
terminal.emit_damage_event();
250+
}
248251
}
249252
}
250253

0 commit comments

Comments
 (0)