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 --- wiki/Configuration:-Debug-Options.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'wiki/Configuration:-Debug-Options.md') diff --git a/wiki/Configuration:-Debug-Options.md b/wiki/Configuration:-Debug-Options.md index cf59d8b6..299437ca 100644 --- a/wiki/Configuration:-Debug-Options.md +++ b/wiki/Configuration:-Debug-Options.md @@ -28,8 +28,9 @@ debug { keep-laptop-panel-on-when-lid-is-closed disable-monitor-names strict-new-window-focus-policy - honor-xdg-activation-with-invalid-serial + honor-xdg-activation-with-invalid-serial skip-cursor-only-updates-during-vrr + deactivate-unfocused-windows } binds { @@ -292,6 +293,22 @@ debug { } ``` +### `deactivate-unfocused-windows` + +Since: next release + +Some clients (notably, Chromium- and Electron-based, like Teams or Slack) erroneously use the Activated xdg window state instead of keyboard focus for things like deciding whether to send notifications for new messages, or for picking where to show an IME popup. +Niri keeps the Activated state on unfocused workspaces and invisible tabbed windows (to reduce unwanted animations), surfacing bugs in these applications. + +Set this debug flag to work around these problems. +It will cause niri to drop the Activated state for all unfocused windows. + +```kdl +debug { + deactivate-unfocused-windows +} +``` + ### Key Bindings These are not debug options, but rather key bindings. -- cgit