From 8d7b22d1a8968a46286fdd13ca9d8d2c88e10e48 Mon Sep 17 00:00:00 2001 From: sashomasho Date: Wed, 11 Jun 2025 09:05:14 +0300 Subject: Add deactivate-unfocused-windows debug flag (#1706) * force xdg deactivation on invisable workspaces This debug option provides a workaround for many Chromium-based chat applications that fail to show notifications when they're active in a workspace that's not currently visible and don't have keyboard focus Signed-off-by: Alex Yosifov * fixes --------- Signed-off-by: Alex Yosifov Co-authored-by: Ivan Molodetskikh --- niri-config/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'niri-config') diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 1fb46c71..67a621de 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -2351,6 +2351,8 @@ pub struct DebugConfig { #[knuffel(child)] pub honor_xdg_activation_with_invalid_serial: bool, #[knuffel(child)] + pub deactivate_unfocused_windows: bool, + #[knuffel(child)] pub skip_cursor_only_updates_during_vrr: bool, } @@ -5324,6 +5326,7 @@ mod tests { disable_monitor_names: false, strict_new_window_focus_policy: false, honor_xdg_activation_with_invalid_serial: false, + deactivate_unfocused_windows: false, skip_cursor_only_updates_during_vrr: false, }, workspaces: [ -- cgit