aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Debug-Options.md
diff options
context:
space:
mode:
authorsashomasho <sashomasho@gmail.com>2025-06-11 09:05:14 +0300
committerGitHub <noreply@github.com>2025-06-11 06:05:14 +0000
commit8d7b22d1a8968a46286fdd13ca9d8d2c88e10e48 (patch)
treed146f59c630f6a74141f0f691e89b3e87fc0138f /wiki/Configuration:-Debug-Options.md
parent0407ac5e4ce67255388d7ed8d85ffdbe14ec99ab (diff)
downloadniri-8d7b22d1a8968a46286fdd13ca9d8d2c88e10e48.tar.gz
niri-8d7b22d1a8968a46286fdd13ca9d8d2c88e10e48.tar.bz2
niri-8d7b22d1a8968a46286fdd13ca9d8d2c88e10e48.zip
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 <sashomasho@gmail.com> * fixes --------- Signed-off-by: Alex Yosifov <sashomasho@gmail.com> Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'wiki/Configuration:-Debug-Options.md')
-rw-r--r--wiki/Configuration:-Debug-Options.md19
1 files changed, 18 insertions, 1 deletions
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`
+
+<sup>Since: next release</sup>
+
+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.