diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-24 21:49:07 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-24 22:01:26 +0400 |
| commit | 3e598c565e6e8ad4c34e93aec9a49e60d51d730e (patch) | |
| tree | 95d3f12d04f3a416ba86915ebea01b7e0f66498e /src/handlers | |
| parent | e261b641ed62474676c90aaa4e734cdd1ecde703 (diff) | |
| download | niri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.tar.gz niri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.tar.bz2 niri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.zip | |
Implement border window rule
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/xdg_shell.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index 36033da8..0b0a5a33 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -230,7 +230,7 @@ impl XdgShellHandler for State { // The required configure will be the initial configure. } - InitialConfigureState::Configured { output, .. } => { + InitialConfigureState::Configured { rules, output, .. } => { // Figure out the monitor following a similar logic to initial configure. // FIXME: deduplicate. let mon = requested_output @@ -269,7 +269,7 @@ impl XdgShellHandler for State { toplevel.with_pending_state(|state| { state.states.set(xdg_toplevel::State::Fullscreen); }); - ws.configure_new_window(&unmapped.window, None); + ws.configure_new_window(&unmapped.window, None, rules); } // We already sent the initial configure, so we need to reconfigure. @@ -302,10 +302,10 @@ impl XdgShellHandler for State { // The required configure will be the initial configure. } InitialConfigureState::Configured { + rules, width, is_full_width, output, - .. } => { // Figure out the monitor following a similar logic to initial configure. // FIXME: deduplicate. @@ -349,7 +349,7 @@ impl XdgShellHandler for State { } else { *width }; - ws.configure_new_window(&unmapped.window, configure_width); + ws.configure_new_window(&unmapped.window, configure_width, rules); } // We already sent the initial configure, so we need to reconfigure. @@ -580,7 +580,7 @@ impl State { } else { width }; - ws.configure_new_window(window, configure_width); + ws.configure_new_window(window, configure_width, &rules); } // If the user prefers no CSD, it's a reasonable assumption that they would prefer to get |
