From 956093be4f3b7a0fe86a523e5f9d9e74b9a77e59 Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 21 Aug 2026 03:32:07 +0200 Subject: wm: flush terminal window content on gaining focus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- rsnix/src/vt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rsnix/src/vt.rs') 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 { } } - fn flush(&mut self) { + pub fn flush(&mut self) { if self.pending_scrolls > 0 { return; } -- cgit v1.2.3