diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-10 13:12:53 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-10 07:29:33 -0800 |
| commit | 6942ecc13a40867850fc26429da21603647e8026 (patch) | |
| tree | faa00e99985eb8d24acb09235d93b7fe2822b301 /src/niri.rs | |
| parent | 963ff14ed025eeb5d6785dbcd4c073251ef7a9e9 (diff) | |
| download | niri-6942ecc13a40867850fc26429da21603647e8026.tar.gz niri-6942ecc13a40867850fc26429da21603647e8026.tar.bz2 niri-6942ecc13a40867850fc26429da21603647e8026.zip | |
Implement clicking on tab to switch
Diffstat (limited to 'src/niri.rs')
| -rw-r--r-- | src/niri.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/niri.rs b/src/niri.rs index 8710493c..4dfaf525 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -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; |
