From c6b62d8055370228e3eefa009a224a39434ba1f6 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 21 Nov 2019 00:11:51 -0800 Subject: [PATCH] tab bar: default mouse coords outside of view This helps to prevent a spurious hover styled tab caption being rendered in some cases. --- src/frontend/gui/termwindow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/gui/termwindow.rs b/src/frontend/gui/termwindow.rs index 4c8b664ce..eb6985fd0 100644 --- a/src/frontend/gui/termwindow.rs +++ b/src/frontend/gui/termwindow.rs @@ -382,7 +382,7 @@ impl TermWindow { keys: KeyMap::new(), show_tab_bar: config.enable_tab_bar, tab_bar: TabBarState::default(), - last_mouse_coords: (0, 0), + last_mouse_coords: (0, -1), }), )?;