From df13e7bf4d56d0563628472f8716afb01a96cfac Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 21 Aug 2026 04:04:20 +0200 Subject: wm: 1px focus-colored border + flush full window on focus change - draw_window_border(): 1px border around every window except the root. Blue (TITLE_BG_FOCUS) when focused, grey (TITLE_BG) when not. - focus() / focus_console(): composite the full window area + border pad on both the old and new focused windows (was title-bar-only before). - flush(): include border pad in the damage rectangle. - move_window(): redraw border area at old and new positions. - Remove redundant term.flush() from tty Focus handler (focus() covers it). --- rsnix/src/tty.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'rsnix/src/tty.rs') diff --git a/rsnix/src/tty.rs b/rsnix/src/tty.rs index ad33cb3..c44dca8 100644 --- a/rsnix/src/tty.rs +++ b/rsnix/src/tty.rs @@ -201,9 +201,6 @@ pub fn read_line_from_queue(term: &mut crate::vt::Terminal) -> Option crate::sched::TaskMsg::Focus(gained) => { if gained { crate::vt::set_active(term as *mut crate::vt::Terminal); - // Re-composite the full window so content is visible - // immediately (focus() only redraws the title bar). - term.flush(); } else { crate::vt::set_active(core::ptr::null_mut()); } -- cgit v1.2.3