mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
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>
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user