aboutsummaryrefslogtreecommitdiff
path: root/src/window/mod.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-09-02 08:07:22 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-10-15 09:04:16 +0300
commite1fad994da9565b43c7fb139cb2fb7bf404cc320 (patch)
tree305fa0714d66ad2b4346b3aee6eb785099b29fa1 /src/window/mod.rs
parente5d4e7c1b1a0b61770b6711a53fe41920d56452d (diff)
downloadniri-e1fad994da9565b43c7fb139cb2fb7bf404cc320.tar.gz
niri-e1fad994da9565b43c7fb139cb2fb7bf404cc320.tar.bz2
niri-e1fad994da9565b43c7fb139cb2fb7bf404cc320.zip
Implement maximize-to-edges (true Wayland maximize)
Diffstat (limited to 'src/window/mod.rs')
-rw-r--r--src/window/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window/mod.rs b/src/window/mod.rs
index c65fa535..a329edd7 100644
--- a/src/window/mod.rs
+++ b/src/window/mod.rs
@@ -61,6 +61,9 @@ pub struct ResolvedWindowRules {
/// Whether the window should open full-width.
pub open_maximized: Option<bool>,
+ /// Whether the window should open maximized to edges (true maximized).
+ pub open_maximized_to_edges: Option<bool>,
+
/// Whether the window should open fullscreen.
pub open_fullscreen: Option<bool>,
@@ -180,6 +183,7 @@ impl ResolvedWindowRules {
open_on_output: None,
open_on_workspace: None,
open_maximized: None,
+ open_maximized_to_edges: None,
open_fullscreen: None,
open_floating: None,
open_focused: None,
@@ -300,6 +304,10 @@ impl ResolvedWindowRules {
resolved.open_maximized = Some(x);
}
+ if let Some(x) = rule.open_maximized_to_edges {
+ resolved.open_maximized_to_edges = Some(x);
+ }
+
if let Some(x) = rule.open_fullscreen {
resolved.open_fullscreen = Some(x);
}