mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Add open-focused window rule
This commit is contained in:
@@ -985,6 +985,8 @@ pub struct WindowRule {
|
||||
pub open_fullscreen: Option<bool>,
|
||||
#[knuffel(child, unwrap(argument))]
|
||||
pub open_floating: Option<bool>,
|
||||
#[knuffel(child, unwrap(argument))]
|
||||
pub open_focused: Option<bool>,
|
||||
|
||||
// Rules applied dynamically.
|
||||
#[knuffel(child, unwrap(argument))]
|
||||
@@ -3142,6 +3144,7 @@ mod tests {
|
||||
open-maximized true
|
||||
open-fullscreen false
|
||||
open-floating false
|
||||
open-focused true
|
||||
|
||||
focus-ring {
|
||||
off
|
||||
@@ -3421,6 +3424,7 @@ mod tests {
|
||||
open_maximized: Some(true),
|
||||
open_fullscreen: Some(false),
|
||||
open_floating: Some(false),
|
||||
open_focused: Some(true),
|
||||
focus_ring: BorderRule {
|
||||
off: true,
|
||||
width: Some(FloatOrInt(3.)),
|
||||
|
||||
Reference in New Issue
Block a user