Implement clicking on tab to switch

This commit is contained in:
Ivan Molodetskikh
2025-02-10 13:12:53 +03:00
parent 963ff14ed0
commit 6942ecc13a
6 changed files with 97 additions and 12 deletions
+11 -1
View File
@@ -5060,7 +5060,17 @@ impl Niri {
if let Some(window) = &new_focus.window {
if current_focus.window.as_ref() != Some(window) {
let (window, _) = window;
let (window, hit) = window;
// Don't trigger focus-follows-mouse over the tab indicator.
if matches!(
hit,
HitType::Activate {
is_tab_indicator: true
}
) {
return;
}
if !self.layout.should_trigger_focus_follows_mouse_on(window) {
return;