mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Implement clicking on tab to switch
This commit is contained in:
+11
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user