diff options
| author | salmonik <salmonik@tuta.io> | 2026-08-21 03:32:07 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-08-21 03:32:07 +0200 |
| commit | 956093be4f3b7a0fe86a523e5f9d9e74b9a77e59 (patch) | |
| tree | 7dd442e399a8b7cc40de6acc79f78d1e70a641d0 /rsnix/src/vt.rs | |
| parent | v0.5.11: fix terminal focus — toggle ACTIVE on Focus messages (diff) | |
| download | rs-dos-956093be4f3b7a0fe86a523e5f9d9e74b9a77e59.tar.gz rs-dos-956093be4f3b7a0fe86a523e5f9d9e74b9a77e59.zip | |
wm: flush terminal window content on gaining focus
focus() only composites the title bar — the window content stays
stale until the next write. Call term.flush() on Focus(true) so
the full window is re-composited immediately when switching to it.
Diffstat (limited to 'rsnix/src/vt.rs')
| -rw-r--r-- | rsnix/src/vt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsnix/src/vt.rs b/rsnix/src/vt.rs index 0d7cf9b..d02cefa 100644 --- a/rsnix/src/vt.rs +++ b/rsnix/src/vt.rs | |||
| @@ -552,7 +552,7 @@ impl Terminal { | |||
| 552 | } | 552 | } |
| 553 | } | 553 | } |
| 554 | 554 | ||
| 555 | fn flush(&mut self) { | 555 | pub fn flush(&mut self) { |
| 556 | if self.pending_scrolls > 0 { | 556 | if self.pending_scrolls > 0 { |
| 557 | return; | 557 | return; |
| 558 | } | 558 | } |
