forge
Explore
Log in

Don't you dare go Hollow

Implement maximize-to-edges (true Wayland maximize)

Browse files at this commit

e1fad994da9565b43c7fb139cb2fb7bf404cc320Ivan MolodetskikhParent: e5d4e7c

251 changed files +4858 -280

niri-config/src/binds.rsmodified+7 -0
@@ -303,6 +303,9 @@ pub enum Action {
303303 #[knuffel(skip)]
304304 SwitchPresetWindowHeightBackById(u64),
305305 MaximizeColumn,
306+ MaximizeWindowToEdges,
307+ #[knuffel(skip)]
308+ MaximizeWindowToEdgesById(u64),
306309 SetColumnWidth(#[knuffel(argument, str)] SizeChange),
307310 ExpandColumnToAvailableWidth,
308311 SwitchLayout(#[knuffel(argument, str)] LayoutSwitchTarget),
@@ -568,6 +571,10 @@ impl From<niri_ipc::Action> for Action {
568571 Self::SwitchPresetWindowHeightBackById(id)
569572 }
570573 niri_ipc::Action::MaximizeColumn {} => Self::MaximizeColumn,
574+ niri_ipc::Action::MaximizeWindowToEdges { id: None } => Self::MaximizeWindowToEdges,
575+ niri_ipc::Action::MaximizeWindowToEdges { id: Some(id) } => {
576+ Self::MaximizeWindowToEdgesById(id)
577+ }
571578 niri_ipc::Action::SetColumnWidth { change } => Self::SetColumnWidth(change),
572579 niri_ipc::Action::ExpandColumnToAvailableWidth {} => Self::ExpandColumnToAvailableWidth,
573580 niri_ipc::Action::SwitchLayout { layout } => Self::SwitchLayout(layout),
niri-config/src/lib.rsmodified+1 -0
@@ -1578,6 +1578,7 @@ mod tests {
15781578 open_maximized: Some(
15791579 true,
15801580 ),
1581+ open_maximized_to_edges: None,
15811582 open_fullscreen: Some(
15821583 false,
15831584 ),
niri-config/src/window_rule.rsmodified+2 -0
@@ -24,6 +24,8 @@ pub struct WindowRule {
2424 #[knuffel(child, unwrap(argument))]
2525 pub open_maximized: Option<bool>,
2626 #[knuffel(child, unwrap(argument))]
27+ pub open_maximized_to_edges: Option<bool>,
28+ #[knuffel(child, unwrap(argument))]
2729 pub open_fullscreen: Option<bool>,
2830 #[knuffel(child, unwrap(argument))]
2931 pub open_floating: Option<bool>,
niri-ipc/src/lib.rsmodified+8 -0
@@ -713,6 +713,14 @@ pub enum Action {
713713 },
714714 /// Toggle the maximized state of the focused column.
715715 MaximizeColumn {},
716+ /// Toggle the maximized-to-edges state of the focused window.
717+ MaximizeWindowToEdges {
718+ /// Id of the window to maximize.
719+ ///
720+ /// If `None`, uses the focused window.
721+ #[cfg_attr(feature = "clap", arg(long))]
722+ id: Option<u64>,
723+ },
716724 /// Change the width of the focused column.
717725 SetColumnWidth {
718726 /// How to change the width.
niri-visual-tests/src/cases/layout.rsmodified+3 -3
@@ -2,7 +2,7 @@ use std::collections::HashMap;
22 use std::time::Duration;
33
44 use niri::animation::Clock;
5-use niri::layout::{ActivateWindow, AddWindowTarget, LayoutElement as _, Options};
5+use niri::layout::{ActivateWindow, AddWindowTarget, LayoutElement as _, Options, SizingMode};
66 use niri::render_helpers::RenderTarget;
77 use niri_config::{Color, OutputName, PresetSize};
88 use smithay::backend::renderer::element::RenderElement;
@@ -168,7 +168,7 @@ impl Layout {
168168 let max_size = window.max_size();
169169 window.request_size(
170170 ws.new_window_size(width, None, false, window.rules(), (min_size, max_size)),
171- false,
171+ SizingMode::Normal,
172172 false,
173173 None,
174174 );
@@ -197,7 +197,7 @@ impl Layout {
197197 let max_size = window.max_size();
198198 window.request_size(
199199 ws.new_window_size(width, None, false, window.rules(), (min_size, max_size)),
200- false,
200+ SizingMode::Normal,
201201 false,
202202 None,
203203 );
niri-visual-tests/src/cases/window.rsmodified+5 -5
@@ -1,4 +1,4 @@
1-use niri::layout::LayoutElement;
1+use niri::layout::{LayoutElement, SizingMode};
22 use niri::render_helpers::RenderTarget;
33 use smithay::backend::renderer::element::RenderElement;
44 use smithay::backend::renderer::gles::GlesRenderer;
@@ -14,14 +14,14 @@ pub struct Window {
1414 impl Window {
1515 pub fn freeform(args: Args) -> Self {
1616 let mut window = TestWindow::freeform(0);
17- window.request_size(args.size, false, false, None);
17+ window.request_size(args.size, SizingMode::Normal, false, None);
1818 window.communicate();
1919 Self { window }
2020 }
2121
2222 pub fn fixed_size(args: Args) -> Self {
2323 let mut window = TestWindow::fixed_size(0);
24- window.request_size(args.size, false, false, None);
24+ window.request_size(args.size, SizingMode::Normal, false, None);
2525 window.communicate();
2626 Self { window }
2727 }
@@ -29,7 +29,7 @@ impl Window {
2929 pub fn fixed_size_with_csd_shadow(args: Args) -> Self {
3030 let mut window = TestWindow::fixed_size(0);
3131 window.set_csd_shadow_width(64);
32- window.request_size(args.size, false, false, None);
32+ window.request_size(args.size, SizingMode::Normal, false, None);
3333 window.communicate();
3434 Self { window }
3535 }
@@ -38,7 +38,7 @@ impl Window {
3838 impl TestCase for Window {
3939 fn resize(&mut self, width: i32, height: i32) {
4040 self.window
41- .request_size(Size::from((width, height)), false, false, None);
41+ .request_size(Size::from((width, height)), SizingMode::Normal, false, None);
4242 self.window.communicate();
4343 }
4444
niri-visual-tests/src/test_window.rsmodified+9 -9
@@ -4,7 +4,7 @@ use std::rc::Rc;
44
55 use niri::layout::{
66 ConfigureIntent, InteractiveResizeData, LayoutElement, LayoutElementRenderElement,
7- LayoutElementRenderSnapshot,
7+ LayoutElementRenderSnapshot, SizingMode,
88 };
99 use niri::render_helpers::offscreen::OffscreenData;
1010 use niri::render_helpers::renderer::NiriRenderer;
@@ -24,7 +24,7 @@ struct TestWindowInner {
2424 min_size: Size<i32, Logical>,
2525 max_size: Size<i32, Logical>,
2626 buffer: SolidColorBuffer,
27- pending_fullscreen: bool,
27+ pending_sizing_mode: SizingMode,
2828 csd_shadow_width: i32,
2929 csd_shadow_buffer: SolidColorBuffer,
3030 }
@@ -50,7 +50,7 @@ impl TestWindow {
5050 min_size,
5151 max_size,
5252 buffer,
53- pending_fullscreen: false,
53+ pending_sizing_mode: SizingMode::Normal,
5454 csd_shadow_width: 0,
5555 csd_shadow_buffer: SolidColorBuffer::new((0., 0.), [0., 0., 0., 0.3]),
5656 })),
@@ -182,12 +182,12 @@ impl LayoutElement for TestWindow {
182182 fn request_size(
183183 &mut self,
184184 size: Size<i32, Logical>,
185- is_fullscreen: bool,
185+ mode: SizingMode,
186186 _animate: bool,
187187 _transaction: Option<Transaction>,
188188 ) {
189189 self.inner.borrow_mut().requested_size = Some(size);
190- self.inner.borrow_mut().pending_fullscreen = is_fullscreen;
190+ self.inner.borrow_mut().pending_sizing_mode = mode;
191191 }
192192
193193 fn min_size(&self) -> Size<i32, Logical> {
@@ -232,12 +232,12 @@ impl LayoutElement for TestWindow {
232232
233233 fn send_pending_configure(&mut self) {}
234234
235- fn is_fullscreen(&self) -> bool {
236- false
235+ fn pending_sizing_mode(&self) -> SizingMode {
236+ self.inner.borrow().pending_sizing_mode
237237 }
238238
239- fn is_pending_fullscreen(&self) -> bool {
240- self.inner.borrow().pending_fullscreen
239+ fn sizing_mode(&self) -> SizingMode {
240+ SizingMode::Normal
241241 }
242242
243243 fn requested_size(&self) -> Option<Size<i32, Logical>> {
src/handlers/compositor.rsmodified+64 -27
@@ -20,7 +20,7 @@ use smithay::{delegate_compositor, delegate_shm};
2020
2121 use super::xdg_shell::add_mapped_toplevel_pre_commit_hook;
2222 use crate::handlers::XDG_ACTIVATION_TOKEN_TIMEOUT;
23-use crate::layout::{ActivateWindow, AddWindowTarget};
23+use crate::layout::{ActivateWindow, AddWindowTarget, LayoutElement as _};
2424 use crate::niri::{CastTarget, ClientState, LockState, State};
2525 use crate::utils::transaction::Transaction;
2626 use crate::utils::{is_mapped, send_scale_transform};
@@ -91,35 +91,59 @@ impl CompositorHandler for State {
9191
9292 let toplevel = window.toplevel().expect("no X11 support");
9393
94- let (rules, width, height, is_full_width, output, workspace_id) =
95- if let InitialConfigureState::Configured {
94+ let (
95+ rules,
96+ width,
97+ height,
98+ is_full_width,
99+ output,
100+ workspace_id,
101+ is_pending_maximized,
102+ ) = if let InitialConfigureState::Configured {
103+ rules,
104+ width,
105+ height,
106+ floating_width: _,
107+ floating_height: _,
108+ is_full_width,
109+ output,
110+ workspace_name,
111+ is_pending_maximized,
112+ } = state
113+ {
114+ // Check that the output is still connected.
115+ let output =
116+ output.filter(|o| self.niri.layout.monitor_for_output(o).is_some());
117+
118+ // Check that the workspace still exists.
119+ let workspace_id = workspace_name
120+ .as_deref()
121+ .and_then(|n| self.niri.layout.find_workspace_by_name(n))
122+ .map(|(_, ws)| ws.id());
123+
124+ (
96125 rules,
97126 width,
98127 height,
99- floating_width: _,
100- floating_height: _,
101128 is_full_width,
102129 output,
103- workspace_name,
104- } = state
105- {
106- // Check that the output is still connected.
107- let output =
108- output.filter(|o| self.niri.layout.monitor_for_output(o).is_some());
109-
110- // Check that the workspace still exists.
111- let workspace_id = workspace_name
112- .as_deref()
113- .and_then(|n| self.niri.layout.find_workspace_by_name(n))
114- .map(|(_, ws)| ws.id());
115-
116- (rules, width, height, is_full_width, output, workspace_id)
117- } else {
118- // Can happen when a surface unmaps by attaching a null buffer while
119- // there are in-flight pending configures.
120- debug!("window mapped without proper initial configure");
121- (ResolvedWindowRules::empty(), None, None, false, None, None)
122- };
130+ workspace_id,
131+ is_pending_maximized,
132+ )
133+ } else {
134+ // Can happen when a surface unmaps by attaching a null buffer while
135+ // there are in-flight pending configures.
136+ debug!("window mapped without proper initial configure");
137+ (
138+ ResolvedWindowRules::empty(),
139+ None,
140+ None,
141+ false,
142+ None,
143+ None,
144+ false,
145+ )
146+ };
123147
124148 // The GTK about dialog sets min/max size after the initial configure but
125149 // before mapping, so we need to compute open_floating at the last possible
@@ -169,7 +193,7 @@ impl CompositorHandler for State {
169193 .map(|(mapped, _)| mapped.window.clone());
170194
171195 // The mapped pre-commit hook deals with dma-bufs on its own.
172- self.remove_default_dmabuf_pre_commit_hook(toplevel.wl_surface());
196+ self.remove_default_dmabuf_pre_commit_hook(surface);
173197 let hook = add_mapped_toplevel_pre_commit_hook(toplevel);
174198 let mapped = Mapped::new(window, rules, hook);
175199 let window = mapped.window.clone();
@@ -193,8 +217,21 @@ impl CompositorHandler for State {
193217 is_floating,
194218 activate,
195219 );
220+ let output = output.cloned();
221+
222+ // The window state cannot contain Fullscreen and Maximized at once. Therefore,
223+ // if the window ended up fullscreen, then we only know that it is also
224+ // maximized from the is_pending_maximized variable. Tell the layout about it
225+ // here so that unfullscreening the window makes it maximized.
226+ if let Some((mapped, _)) = self.niri.layout.find_window_and_output(surface) {
227+ if mapped.pending_sizing_mode().is_fullscreen() && is_pending_maximized {
228+ self.niri.layout.set_maximized(&window, true);
229+ }
230+ } else {
231+ error!("layout is missing the window that we just added");
232+ }
196233
197- if let Some(output) = output.cloned() {
234+ if let Some(output) = output {
198235 self.niri.layout.start_open_animation_for_window(&window);
199236
200237 let new_focus = self.niri.layout.focus().map(|m| &m.window);
src/handlers/mod.rsmodified+14 -0
@@ -550,6 +550,20 @@ impl ForeignToplevelHandler for State {
550550 self.niri.layout.set_fullscreen(&window, false);
551551 }
552552 }
553+
554+ fn set_maximized(&mut self, wl_surface: WlSurface) {
555+ if let Some((mapped, _)) = self.niri.layout.find_window_and_output(&wl_surface) {
556+ let window = mapped.window.clone();
557+ self.niri.layout.set_maximized(&window, true);
558+ }
559+ }
560+
561+ fn unset_maximized(&mut self, wl_surface: WlSurface) {
562+ if let Some((mapped, _)) = self.niri.layout.find_window_and_output(&wl_surface) {
563+ let window = mapped.window.clone();
564+ self.niri.layout.set_maximized(&window, false);
565+ }
566+ }
553567 }
554568 delegate_foreign_toplevel!(State);
555569
src/handlers/xdg_shell.rsmodified+222 -12
@@ -428,18 +428,205 @@ impl XdgShellHandler for State {
428428 });
429429 }
430430
431- fn maximize_request(&mut self, surface: ToplevelSurface) {
432- // FIXME
431+ fn maximize_request(&mut self, toplevel: ToplevelSurface) {
432+ if let Some((mapped, _)) = self
433+ .niri
434+ .layout
435+ .find_window_and_output_mut(toplevel.wl_surface())
436+ {
437+ // A configure is required in response to this event regardless if there are pending
438+ // changes.
439+ mapped.set_needs_configure();
433440
434- // A configure is required in response to this event. However, if an initial configure
435- // wasn't sent, then we will send this as part of the initial configure later.
436- if surface.is_initial_configure_sent() {
437- surface.send_configure();
441+ let window = mapped.window.clone();
442+ self.niri.layout.set_maximized(&window, true);
443+ } else if let Some(unmapped) = self.niri.unmapped_windows.get_mut(toplevel.wl_surface()) {
444+ match &mut unmapped.state {
445+ InitialConfigureState::NotConfigured {
446+ wants_maximized, ..
447+ } => {
448+ *wants_maximized = true;
449+
450+ // The required configure will be the initial configure.
451+ }
452+ InitialConfigureState::Configured {
453+ rules,
454+ output,
455+ is_pending_maximized,
456+ ..
457+ } => {
458+ // Figure out the monitor following a similar logic to initial configure.
459+ // FIXME: deduplicate.
460+ let mon = output
461+ .as_ref()
462+ .and_then(|o| self.niri.layout.monitor_for_output(o))
463+ .map(|mon| (mon, false))
464+ // If not, check if we have a parent with a monitor.
465+ .or_else(|| {
466+ toplevel
467+ .parent()
468+ .and_then(|parent| self.niri.layout.find_window_and_output(&parent))
469+ .and_then(|(_win, output)| output)
470+ .and_then(|o| self.niri.layout.monitor_for_output(o))
471+ .map(|mon| (mon, true))
472+ })
473+ // If not, fall back to the active monitor.
474+ .or_else(|| {
475+ self.niri
476+ .layout
477+ .active_monitor_ref()
478+ .map(|mon| (mon, false))
479+ });
480+
481+ *output = mon
482+ .filter(|(_, parent)| !parent)
483+ .map(|(mon, _)| mon.output().clone());
484+ let mon = mon.map(|(mon, _)| mon);
485+
486+ let ws = mon
487+ .map(|mon| mon.active_workspace_ref())
488+ .or_else(|| self.niri.layout.active_workspace());
489+
490+ if let Some(ws) = ws {
491+ // If the window is pending fullscreen, then this will do nothing. But
492+ // that's expected: the window remains fullscreen, and we simply remember
493+ // that it is now pending maximized.
494+ *is_pending_maximized = true;
495+ toplevel.with_pending_state(|state| {
496+ if !state.states.contains(xdg_toplevel::State::Fullscreen) {
497+ state.states.set(xdg_toplevel::State::Maximized);
498+ }
499+ });
500+ ws.configure_new_window(&unmapped.window, None, None, false, rules);
501+ }
502+
503+ // We already sent the initial configure, so we need to reconfigure.
504+ toplevel.send_configure();
505+ }
506+ }
507+ } else {
508+ error!("couldn't find the toplevel in maximize_request()");
509+ toplevel.send_configure();
438510 }
439511 }
440512
441- fn unmaximize_request(&mut self, _surface: ToplevelSurface) {
442- // FIXME
513+ fn unmaximize_request(&mut self, toplevel: ToplevelSurface) {
514+ if let Some((mapped, _)) = self
515+ .niri
516+ .layout
517+ .find_window_and_output_mut(toplevel.wl_surface())
518+ {
519+ // A configure is required in response to this event regardless if there are pending
520+ // changes.
521+ mapped.set_needs_configure();
522+
523+ let window = mapped.window.clone();
524+ self.niri.layout.set_maximized(&window, false);
525+ } else if let Some(unmapped) = self.niri.unmapped_windows.get_mut(toplevel.wl_surface()) {
526+ match &mut unmapped.state {
527+ InitialConfigureState::NotConfigured {
528+ wants_maximized, ..
529+ } => {
530+ *wants_maximized = false;
531+
532+ // The required configure will be the initial configure.
533+ }
534+ InitialConfigureState::Configured {
535+ rules,
536+ width,
537+ height,
538+ floating_width,
539+ floating_height,
540+ is_full_width,
541+ output,
542+ workspace_name,
543+ is_pending_maximized,
544+ } => {
545+ // Figure out the monitor following a similar logic to initial configure.
546+ // FIXME: deduplicate.
547+ let mon = workspace_name
548+ .as_deref()
549+ .and_then(|name| self.niri.layout.monitor_for_workspace(name))
550+ .map(|mon| (mon, false));
551+
552+ let mon = mon.or_else(|| {
553+ output
554+ .as_ref()
555+ .and_then(|o| self.niri.layout.monitor_for_output(o))
556+ .map(|mon| (mon, false))
557+ // If not, check if we have a parent with a monitor.
558+ .or_else(|| {
559+ toplevel
560+ .parent()
561+ .and_then(|parent| {
562+ self.niri.layout.find_window_and_output(&parent)
563+ })
564+ .and_then(|(_win, output)| output)
565+ .and_then(|o| self.niri.layout.monitor_for_output(o))
566+ .map(|mon| (mon, true))
567+ })
568+ // If not, fall back to the active monitor.
569+ .or_else(|| {
570+ self.niri
571+ .layout
572+ .active_monitor_ref()
573+ .map(|mon| (mon, false))
574+ })
575+ });
576+
577+ *output = mon
578+ .filter(|(_, parent)| !parent)
579+ .map(|(mon, _)| mon.output().clone());
580+ let mon = mon.map(|(mon, _)| mon);
581+
582+ let ws = workspace_name
583+ .as_deref()
584+ .and_then(|name| mon.map(|mon| mon.find_named_workspace(name)))
585+ .unwrap_or_else(|| {
586+ mon.map(|mon| mon.active_workspace_ref())
587+ .or_else(|| self.niri.layout.active_workspace())
588+ });
589+
590+ if let Some(ws) = ws {
591+ // If the window is pending fullscreen, then this will do nothing since
592+ // then the Maximized state is already unset. But that's expected: the
593+ // window remains fullscreen, and we simply remember that it is no
594+ // longer pending maximized.
595+ *is_pending_maximized = false;
596+ toplevel.with_pending_state(|state| {
597+ state.states.unset(xdg_toplevel::State::Maximized);
598+ });
599+
600+ let is_floating = rules.compute_open_floating(&toplevel);
601+ let configure_width = if is_floating {
602+ *floating_width
603+ } else if *is_full_width {
604+ Some(PresetSize::Proportion(1.))
605+ } else {
606+ *width
607+ };
608+ let configure_height = if is_floating {
609+ *floating_height
610+ } else {
611+ *height
612+ };
613+ ws.configure_new_window(
614+ &unmapped.window,
615+ configure_width,
616+ configure_height,
617+ is_floating,
618+ rules,
619+ );
620+ }
621+
622+ // We already sent the initial configure, so we need to reconfigure.
623+ toplevel.send_configure();
624+ }
625+ }
626+ } else {
627+ error!("couldn't find the toplevel in unmaximize_request()");
628+ toplevel.send_configure();
629+ }
443630 }
444631
445632 fn fullscreen_request(
@@ -474,7 +661,9 @@ impl XdgShellHandler for State {
474661 self.niri.layout.set_fullscreen(&window, true);
475662 } else if let Some(unmapped) = self.niri.unmapped_windows.get_mut(toplevel.wl_surface()) {
476663 match &mut unmapped.state {
477- InitialConfigureState::NotConfigured { wants_fullscreen } => {
664+ InitialConfigureState::NotConfigured {
665+ wants_fullscreen, ..
666+ } => {
478667 *wants_fullscreen = Some(requested_output);
479668
480669 // The required configure will be the initial configure.
@@ -517,6 +706,7 @@ impl XdgShellHandler for State {
517706 if let Some(ws) = ws {
518707 toplevel.with_pending_state(|state| {
519708 state.states.set(xdg_toplevel::State::Fullscreen);
709+ state.states.unset(xdg_toplevel::State::Maximized);
520710 });
521711 ws.configure_new_window(&unmapped.window, None, None, false, rules);
522712 }
@@ -545,7 +735,9 @@ impl XdgShellHandler for State {
545735 self.niri.layout.set_fullscreen(&window, false);
546736 } else if let Some(unmapped) = self.niri.unmapped_windows.get_mut(toplevel.wl_surface()) {
547737 match &mut unmapped.state {
548- InitialConfigureState::NotConfigured { wants_fullscreen } => {
738+ InitialConfigureState::NotConfigured {
739+ wants_fullscreen, ..
740+ } => {
549741 *wants_fullscreen = None;
550742
551743 // The required configure will be the initial configure.
@@ -559,6 +751,7 @@ impl XdgShellHandler for State {
559751 is_full_width,
560752 output,
561753 workspace_name,
754+ is_pending_maximized,
562755 } => {
563756 // Figure out the monitor following a similar logic to initial configure.
564757 // FIXME: deduplicate.
@@ -608,6 +801,10 @@ impl XdgShellHandler for State {
608801 if let Some(ws) = ws {
609802 toplevel.with_pending_state(|state| {
610803 state.states.unset(xdg_toplevel::State::Fullscreen);
804+
805+ if *is_pending_maximized {
806+ state.states.set(xdg_toplevel::State::Maximized);
807+ }
611808 });
612809
613810 let is_floating = rules.compute_open_floating(&toplevel);
@@ -858,7 +1055,11 @@ impl State {
8581055
8591056 let Unmapped { window, state, .. } = unmapped;
8601057
861- let InitialConfigureState::NotConfigured { wants_fullscreen } = state else {
1058+ let InitialConfigureState::NotConfigured {
1059+ wants_fullscreen,
1060+ wants_maximized,
1061+ } = state
1062+ else {
8621063 error!("window must not be already configured in send_initial_configure()");
8631064 return;
8641065 };
@@ -934,14 +1135,22 @@ impl State {
9341135 .or_else(|| self.niri.layout.active_workspace())
9351136 });
9361137
1138+ let mut is_pending_maximized = false;
9371139 if let Some(ws) = ws {
938- // Set a fullscreen state based on window request and window rule.
1140+ // Set a fullscreen and maximized state based on window request and window rule.
1141+ is_pending_maximized = (*wants_maximized && rules.open_maximized_to_edges.is_none())
1142+ || rules.open_maximized_to_edges == Some(true);
1143+
9391144 if (wants_fullscreen.is_some() && rules.open_fullscreen.is_none())
9401145 || rules.open_fullscreen == Some(true)
9411146 {
9421147 toplevel.with_pending_state(|state| {
9431148 state.states.set(xdg_toplevel::State::Fullscreen);
9441149 });
1150+ } else if is_pending_maximized {
1151+ toplevel.with_pending_state(|state| {
1152+ state.states.set(xdg_toplevel::State::Maximized);
1153+ });
9451154 }
9461155
9471156 width = ws.resolve_default_width(rules.default_width, false);
@@ -979,6 +1188,7 @@ impl State {
9791188 is_full_width,
9801189 output,
9811190 workspace_name: ws.and_then(|w| w.name().cloned()),
1191+ is_pending_maximized,
9821192 };
9831193
9841194 trace!(surface = %toplevel.wl_surface().id(), "sending initial configure");
src/input/mod.rsmodified+17 -0
@@ -1514,6 +1514,23 @@ impl State {
15141514 Action::MaximizeColumn => {
15151515 self.niri.layout.toggle_full_width();
15161516 }
1517+ Action::MaximizeWindowToEdges => {
1518+ let focus = self.niri.layout.focus().map(|m| m.window.clone());
1519+ if let Some(window) = focus {
1520+ self.niri.layout.toggle_maximized(&window);
1521+ // FIXME: granular
1522+ self.niri.queue_redraw_all();
1523+ }
1524+ }
1525+ Action::MaximizeWindowToEdgesById(id) => {
1526+ let window = self.niri.layout.windows().find(|(_, m)| m.id().get() == id);
1527+ let window = window.map(|(_, m)| m.window.clone());
1528+ if let Some(window) = window {
1529+ self.niri.layout.toggle_maximized(&window);
1530+ // FIXME: granular
1531+ self.niri.queue_redraw_all();
1532+ }
1533+ }
15171534 Action::FocusMonitorLeft => {
15181535 if let Some(output) = self.niri.output_left() {
15191536 self.niri.layout.focus_output(&output);
src/layout/floating.rsmodified+8 -5
@@ -413,8 +413,8 @@ impl<W: LayoutElement> FloatingSpace<W> {
413413 // unfullscreen it.
414414 let floating_size = tile.floating_window_size;
415415 let win = tile.window_mut();
416- let mut size = if win.is_pending_fullscreen() {
417- // If the window was fullscreen without a floating size, ask for (0, 0).
416+ let mut size = if !win.pending_sizing_mode().is_normal() {
417+ // If the window was fullscreen or maximized without a floating size, ask for (0, 0).
418418 floating_size.unwrap_or_default()
419419 } else {
420420 // If the window wasn't fullscreen without a floating size (e.g. it was tiled before),
@@ -1312,6 +1312,8 @@ impl<W: LayoutElement> FloatingSpace<W> {
13121312 assert_eq!(self.tiles.len(), self.data.len());
13131313
13141314 for (i, (tile, data)) in zip(&self.tiles, &self.data).enumerate() {
1315+ use crate::layout::SizingMode;
1316+
13151317 assert!(Rc::ptr_eq(&self.options, &tile.options));
13161318 assert_eq!(self.view_size, tile.view_size());
13171319 assert_eq!(self.clock, tile.clock);
@@ -1325,9 +1327,10 @@ impl<W: LayoutElement> FloatingSpace<W> {
13251327 assert!(idx < self.options.layout.preset_window_heights.len());
13261328 }
13271329
1328- assert!(
1329- !tile.window().is_pending_fullscreen(),
1330- "floating windows cannot be fullscreen"
1330+ assert_eq!(
1331+ tile.window().pending_sizing_mode(),
1332+ SizingMode::Normal,
1333+ "floating windows cannot be maximized or fullscreen"
13311334 );
13321335
13331336 data.verify_invariants();
src/layout/mod.rsmodified+64 -9
@@ -118,6 +118,13 @@ niri_render_elements! {
118118 pub type LayoutElementRenderSnapshot =
119119 RenderSnapshot<BakedBuffer<TextureBuffer<GlesTexture>>, BakedBuffer<SolidColorBuffer>>;
120120
121+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
122+pub enum SizingMode {
123+ Normal,
124+ Maximized,
125+ Fullscreen,
126+}
127+
121128 pub trait LayoutElement {
122129 /// Type that can be used as a unique ID of this element.
123130 type Id: PartialEq + std::fmt::Debug + Clone;
@@ -185,14 +192,14 @@ pub trait LayoutElement {
185192 fn request_size(
186193 &mut self,
187194 size: Size<i32, Logical>,
188- is_fullscreen: bool,
195+ mode: SizingMode,
189196 animate: bool,
190197 transaction: Option<Transaction>,
191198 );
192199
193200 /// Requests the element to change size once, clearing the request afterwards.
194201 fn request_size_once(&mut self, size: Size<i32, Logical>, animate: bool) {
195- self.request_size(size, false, animate, None);
202+ self.request_size(size, SizingMode::Normal, animate, None);
196203 }
197204
198205 fn min_size(&self) -> Size<i32, Logical>;
@@ -214,15 +221,15 @@ pub trait LayoutElement {
214221 fn configure_intent(&self) -> ConfigureIntent;
215222 fn send_pending_configure(&mut self);
216223
217- /// Whether the element is currently fullscreen.
224+ /// The element's current sizing mode.
218225 ///
219226 /// This will *not* switch immediately after a [`LayoutElement::request_size()`] call.
220- fn is_fullscreen(&self) -> bool;
227+ fn sizing_mode(&self) -> SizingMode;
221228
222- /// Whether we're requesting the element to be fullscreen.
229+ /// The sizing mode that we're requesting the element to assume.
223230 ///
224231 /// This *will* switch immediately after a [`LayoutElement::request_size()`] call.
225- fn is_pending_fullscreen(&self) -> bool;
232+ fn pending_sizing_mode(&self) -> SizingMode;
226233
227234 /// Size previously requested through [`LayoutElement::request_size()`].
228235 fn requested_size(&self) -> Option<Size<i32, Logical>>;
@@ -240,7 +247,7 @@ pub trait LayoutElement {
240247 ///
241248 /// The default impl is for testing only, it will not preserve the window's own size changes.
242249 fn expected_size(&self) -> Option<Size<i32, Logical>> {
243- if self.is_fullscreen() {
250+ if self.sizing_mode().is_fullscreen() {
244251 return None;
245252 }
246253
@@ -502,6 +509,23 @@ struct OverviewGesture {
502509 value: f64,
503510 }
504511
512+impl SizingMode {
513+ #[must_use]
514+ pub fn is_normal(&self) -> bool {
515+ matches!(self, Self::Normal)
516+ }
517+
518+ #[must_use]
519+ pub fn is_fullscreen(&self) -> bool {
520+ matches!(self, Self::Fullscreen)
521+ }
522+
523+ #[must_use]
524+ pub fn is_maximized(&self) -> bool {
525+ matches!(self, Self::Maximized)
526+ }
527+}
528+
505529 impl<W: LayoutElement> InteractiveMoveState<W> {
506530 fn moving(&self) -> Option<&InteractiveMoveData<W>> {
507531 match self {
@@ -2321,7 +2345,7 @@ impl<W: LayoutElement> Layout<W> {
23212345 }
23222346 InteractiveMoveState::Moving(move_) => {
23232347 assert_eq!(self.clock, move_.tile.clock);
2324- assert!(!move_.tile.window().is_pending_fullscreen());
2348+ assert!(move_.tile.window().pending_sizing_mode().is_normal());
23252349
23262350 move_.tile.verify_invariants();
23272351
@@ -3456,7 +3480,7 @@ impl<W: LayoutElement> Layout<W> {
34563480
34573481 pub fn toggle_windowed_fullscreen(&mut self, id: &W::Id) {
34583482 let (_, window) = self.windows().find(|(_, win)| win.id() == id).unwrap();
3459- if window.is_pending_fullscreen() {
3483+ if window.pending_sizing_mode().is_fullscreen() {
34603484 // Remove the real fullscreen.
34613485 for ws in self.workspaces_mut() {
34623486 if ws.has_window(id) {
@@ -3474,6 +3498,36 @@ impl<W: LayoutElement> Layout<W> {
34743498 });
34753499 }
34763500
3501+ pub fn set_maximized(&mut self, id: &W::Id, maximize: bool) {
3502+ if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move {
3503+ if move_.tile.window().id() == id {
3504+ return;
3505+ }
3506+ }
3507+
3508+ for ws in self.workspaces_mut() {
3509+ if ws.has_window(id) {
3510+ ws.set_maximized(id, maximize);
3511+ return;
3512+ }
3513+ }
3514+ }
3515+
3516+ pub fn toggle_maximized(&mut self, id: &W::Id) {
3517+ if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move {
3518+ if move_.tile.window().id() == id {
3519+ return;
3520+ }
3521+ }
3522+
3523+ for ws in self.workspaces_mut() {
3524+ if ws.has_window(id) {
3525+ ws.toggle_maximized(id);
3526+ return;
3527+ }
3528+ }
3529+ }
3530+
34773531 pub fn workspace_switch_gesture_begin(&mut self, output: &Output, is_touchpad: bool) {
34783532 let monitors = match &mut self.monitor_set {
34793533 MonitorSet::Normal { monitors, .. } => monitors,
@@ -3845,6 +3899,7 @@ impl<W: LayoutElement> Layout<W> {
38453899 .find(|ws| ws.has_window(&window_id))
38463900 .unwrap();
38473901 ws.set_fullscreen(window, false);
3902+ ws.set_maximized(window, false);
38483903
38493904 let RemovedTile {
38503905 mut tile,
src/layout/scrolling.rsmodified+278 -85
@@ -18,6 +18,7 @@ use super::workspace::{InteractiveResize, ResolvedSize};
1818 use super::{ConfigureIntent, HitType, InteractiveResizeData, LayoutElement, Options, RemovedTile};
1919 use crate::animation::{Animation, Clock};
2020 use crate::input::swipe_tracker::SwipeTracker;
21+use crate::layout::SizingMode;
2122 use crate::niri_render_elements;
2223 use crate::render_helpers::renderer::NiriRenderer;
2324 use crate::render_helpers::RenderTarget;
@@ -62,8 +63,8 @@ pub struct ScrollingSpace<W: LayoutElement> {
6263 /// The value is the view offset that the previous column had before, to restore it.
6364 activate_prev_column_on_removal: Option<f64>,
6465
65- /// View offset to restore after unfullscreening.
66- view_offset_before_fullscreen: Option<f64>,
66+ /// View offset to restore after unfullscreening or unmaximizing.
67+ view_offset_to_restore: Option<f64>,
6768
6869 /// Windows in the closing animation.
6970 closing_windows: Vec<ClosingWindow>,
@@ -177,6 +178,13 @@ pub struct Column<W: LayoutElement> {
177178 /// take some time to catch up and actually unfullscreen.
178179 is_pending_fullscreen: bool,
179180
181+ /// Whether this column is going to be maximized.
182+ ///
183+ /// Can be `true` together with `is_pending_fullscreen`, which means that the column is
184+ /// effectively pending fullscreen, but unfullscreening should go back to maximized state,
185+ /// rather than normal.
186+ is_pending_maximized: bool,
187+
180188 /// How this column displays and arranges windows.
181189 display_mode: ColumnDisplay,
182190
@@ -192,6 +200,11 @@ pub struct Column<W: LayoutElement> {
192200 /// Latest known working area for this column's workspace.
193201 working_area: Rectangle<f64, Logical>,
194202
203+ /// Working area for this column's workspace excluding struts.
204+ ///
205+ /// Used for maximize-to-edges.
206+ parent_area: Rectangle<f64, Logical>,
207+
195208 /// Scale of the output the column is on (and rounds its sizes to).
196209 scale: f64,
197210
@@ -285,7 +298,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
285298 interactive_resize: None,
286299 view_offset: ViewOffset::Static(0.),
287300 activate_prev_column_on_removal: None,
288- view_offset_before_fullscreen: None,
301+ view_offset_to_restore: None,
289302 closing_windows: Vec::new(),
290303 view_size,
291304 working_area,
@@ -306,7 +319,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
306319 let working_area = compute_working_area(parent_area, scale, options.layout.struts);
307320
308321 for (column, data) in zip(&mut self.columns, &mut self.data) {
309- column.update_config(view_size, working_area, scale, options.clone());
322+ column.update_config(view_size, working_area, parent_area, scale, options.clone());
310323 data.update(column);
311324 }
312325
@@ -440,7 +453,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
440453 }
441454
442455 let col = &self.columns[self.active_column_idx];
443- col.is_pending_fullscreen
456+ col.pending_sizing_mode().is_fullscreen()
444457 }
445458
446459 pub fn new_window_toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> {
@@ -533,24 +546,25 @@ impl<W: LayoutElement> ScrollingSpace<W> {
533546 target_x: Option<f64>,
534547 col_x: f64,
535548 width: f64,
536- is_fullscreen: bool,
549+ mode: SizingMode,
537550 ) -> f64 {
538- if is_fullscreen {
551+ if mode.is_fullscreen() {
539552 return 0.;
540553 }
541554
555+ let (area, padding) = if mode.is_maximized() {
556+ (self.parent_area, 0.)
557+ } else {
558+ (self.working_area, self.options.layout.gaps)
559+ };
560+
542561 let target_x = target_x.unwrap_or_else(|| self.target_view_pos());
543562
544- let new_offset = compute_new_view_offset(
545- target_x + self.working_area.loc.x,
546- self.working_area.size.w,
547- col_x,
548- width,
549- self.options.layout.gaps,
550- );
563+ let new_offset =
564+ compute_new_view_offset(target_x + area.loc.x, area.size.w, col_x, width, padding);
551565
552566 // Non-fullscreen windows are always offset at least by the working area position.
553- new_offset - self.working_area.loc.x
567+ new_offset - area.loc.x
554568 }
555569
556570 fn compute_new_view_offset_centered(
@@ -558,18 +572,24 @@ impl<W: LayoutElement> ScrollingSpace<W> {
558572 target_x: Option<f64>,
559573 col_x: f64,
560574 width: f64,
561- is_fullscreen: bool,
575+ mode: SizingMode,
562576 ) -> f64 {
563- if is_fullscreen {
564- return self.compute_new_view_offset_fit(target_x, col_x, width, is_fullscreen);
577+ if mode.is_fullscreen() {
578+ return self.compute_new_view_offset_fit(target_x, col_x, width, mode);
565579 }
566580
581+ let area = if mode.is_maximized() {
582+ self.parent_area
583+ } else {
584+ self.working_area
585+ };
586+
567587 // Columns wider than the view are left-aligned (the fit code can deal with that).
568- if self.working_area.size.w <= width {
569- return self.compute_new_view_offset_fit(target_x, col_x, width, is_fullscreen);
588+ if area.size.w <= width {
589+ return self.compute_new_view_offset_fit(target_x, col_x, width, mode);
570590 }
571591
572- -(self.working_area.size.w - width) / 2. - self.working_area.loc.x
592+ -(area.size.w - width) / 2. - area.loc.x
573593 }
574594
575595 fn compute_new_view_offset_for_column_fit(&self, target_x: Option<f64>, idx: usize) -> f64 {
@@ -578,7 +598,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
578598 target_x,
579599 self.column_x(idx),
580600 col.width(),
581- col.is_fullscreen(),
601+ col.sizing_mode(),
582602 )
583603 }
584604
@@ -592,7 +612,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
592612 target_x,
593613 self.column_x(idx),
594614 col.width(),
595- col.is_fullscreen(),
615+ col.sizing_mode(),
596616 )
597617 }
598618
@@ -633,6 +653,8 @@ impl<W: LayoutElement> ScrollingSpace<W> {
633653 let target_col_x = self.column_x(idx);
634654 let target_col_width = self.columns[idx].width();
635655
656+ // NOTE: This logic won't work entirely correctly with small fixed-size maximized
657+ // windows (they have a different area and padding).
636658 let total_width = if source_col_x < target_col_x {
637659 // Source is left from target.
638660 target_col_x - source_col_x + target_col_width
@@ -770,7 +792,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
770792
771793 // A different column was activated; reset the flag.
772794 self.activate_prev_column_on_removal = None;
773- self.view_offset_before_fullscreen = None;
795+ self.view_offset_to_restore = None;
774796 self.interactive_resize = None;
775797 }
776798 }
@@ -855,6 +877,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
855877 tile,
856878 self.view_size,
857879 self.working_area,
880+ self.parent_area,
858881 self.scale,
859882 width,
860883 is_full_width,
@@ -956,6 +979,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
956979 column.update_config(
957980 self.view_size,
958981 self.working_area,
982+ self.parent_area,
959983 self.scale,
960984 self.options.clone(),
961985 );
@@ -1059,15 +1083,15 @@ impl<W: LayoutElement> ScrollingSpace<W> {
10591083 tile.animate_alpha(0., 1., movement_config);
10601084 }
10611085
1062- let was_fullscreen = column.is_fullscreen();
1086+ let was_normal = column.sizing_mode().is_normal();
10631087
10641088 let tile = column.tiles.remove(tile_idx);
10651089 column.data.remove(tile_idx);
10661090
10671091 // If an active column became non-fullscreen after removing the tile, clear the stored
10681092 // unfullscreen offset.
1069- if column_idx == self.active_column_idx && was_fullscreen && !column.is_fullscreen() {
1070- self.view_offset_before_fullscreen = None;
1093+ if column_idx == self.active_column_idx && !was_normal && column.sizing_mode().is_normal() {
1094+ self.view_offset_to_restore = None;
10711095 }
10721096
10731097 // If one window is left, reset its weight to 1.
@@ -1171,7 +1195,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
11711195 }
11721196
11731197 if column_idx == self.active_column_idx {
1174- self.view_offset_before_fullscreen = None;
1198+ self.view_offset_to_restore = None;
11751199 }
11761200
11771201 if self.columns.is_empty() {
@@ -1225,7 +1249,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
12251249 .enumerate()
12261250 .find(|(_, col)| col.contains(window))
12271251 .unwrap();
1228- let was_fullscreen = column.is_fullscreen();
1252+ let was_normal = column.sizing_mode().is_normal();
12291253 let prev_origin = column.tiles_origin();
12301254
12311255 let (tile_idx, tile) = column
@@ -1337,9 +1361,9 @@ impl<W: LayoutElement> ScrollingSpace<W> {
13371361 }
13381362
13391363 // When the active column goes fullscreen, store the view offset to restore later.
1340- let is_fullscreen = self.columns[col_idx].is_fullscreen();
1341- if !was_fullscreen && is_fullscreen {
1342- self.view_offset_before_fullscreen = Some(self.view_offset.stationary());
1364+ let is_normal = self.columns[col_idx].sizing_mode().is_normal();
1365+ if was_normal && !is_normal {
1366+ self.view_offset_to_restore = Some(self.view_offset.stationary());
13431367 }
13441368
13451369 // Upon unfullscreening, restore the view offset.
@@ -1348,11 +1372,11 @@ impl<W: LayoutElement> ScrollingSpace<W> {
13481372 // will unfullscreen one by one, and the column width will shrink only when the
13491373 // last tile unfullscreens. This is when we want to restore the view offset,
13501374 // otherwise it will immediately reset back by the animate_view_offset below.
1351- let unfullscreen_offset = if was_fullscreen && !is_fullscreen {
1375+ let unfullscreen_offset = if !was_normal && is_normal {
13521376 // Take the value unconditionally, even if the view is currently frozen by
13531377 // a view gesture. It shouldn't linger around because it's only valid for this
13541378 // particular unfullscreen.
1355- self.view_offset_before_fullscreen.take()
1379+ self.view_offset_to_restore.take()
13561380 } else {
13571381 None
13581382 };
@@ -2165,6 +2189,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
21652189 if col.display_mode != ColumnDisplay::Tabbed && col.tiles.len() > 1 {
21662190 let window = col.tiles[col.active_tile_idx].window().id().clone();
21672191 self.set_fullscreen(&window, false);
2192+ self.set_maximized(&window, false);
21682193 }
21692194 }
21702195
@@ -2307,6 +2332,10 @@ impl<W: LayoutElement> ScrollingSpace<W> {
23072332 iter::once(active_pos).chain(offsets)
23082333 }
23092334
2335+ pub fn columns(&self) -> impl Iterator<Item = &Column<W>> {
2336+ self.columns.iter()
2337+ }
2338+
23102339 fn columns_mut(&mut self) -> impl Iterator<Item = (&mut Column<W>, f64)> + '_ {
23112340 let offsets = self.column_xs(self.data.iter().copied());
23122341 zip(&mut self.columns, offsets)
@@ -2474,7 +2503,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
24742503
24752504 // Adjust for place-within-column tab indicator.
24762505 let origin_x = col.tiles_origin().x;
2477- let extra_w = if is_tabbed && !col.is_fullscreen() {
2506+ let extra_w = if is_tabbed && col.sizing_mode().is_normal() {
24782507 col.tab_indicator.extra_size(col.tiles.len(), col.scale).w
24792508 } else {
24802509 0.
@@ -2491,9 +2520,14 @@ impl<W: LayoutElement> ScrollingSpace<W> {
24912520 // effect here.
24922521 if self.columns.is_empty() {
24932522 let view_offset = if self.is_centering_focused_column() {
2494- self.compute_new_view_offset_centered(Some(0.), 0., hint_area.size.w, false)
2523+ self.compute_new_view_offset_centered(
2524+ Some(0.),
2525+ 0.,
2526+ hint_area.size.w,
2527+ SizingMode::Normal,
2528+ )
24952529 } else {
2496- self.compute_new_view_offset_fit(Some(0.), 0., hint_area.size.w, false)
2530+ self.compute_new_view_offset_fit(Some(0.), 0., hint_area.size.w, SizingMode::Normal)
24972531 };
24982532 hint_area.loc.x -= view_offset;
24992533 } else {
@@ -2693,7 +2727,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
26932727 }
26942728
26952729 let col = &mut self.columns[self.active_column_idx];
2696- if col.is_pending_fullscreen || col.is_full_width {
2730+ if !col.pending_sizing_mode().is_normal() || col.is_full_width {
26972731 return;
26982732 }
26992733
@@ -2709,6 +2743,9 @@ impl<W: LayoutElement> ScrollingSpace<W> {
27092743 return;
27102744 }
27112745
2746+ // NOTE: This logic won't work entirely correctly with small fixed-size maximized windows
2747+ // (they have a different area and padding).
2748+
27122749 // Consider the end of an ongoing animation because that's what compute to fit does too.
27132750 let view_x = self.target_view_pos();
27142751 let working_x = self.working_area.loc.x;
@@ -2812,6 +2849,37 @@ impl<W: LayoutElement> ScrollingSpace<W> {
28122849 true
28132850 }
28142851
2852+ pub fn set_maximized(&mut self, window: &W::Id, maximize: bool) -> bool {
2853+ let mut col_idx = self
2854+ .columns
2855+ .iter()
2856+ .position(|col| col.contains(window))
2857+ .unwrap();
2858+
2859+ if maximize == self.columns[col_idx].is_pending_maximized {
2860+ return false;
2861+ }
2862+
2863+ let mut col = &mut self.columns[col_idx];
2864+ let is_tabbed = col.display_mode == ColumnDisplay::Tabbed;
2865+
2866+ cancel_resize_for_column(&mut self.interactive_resize, col);
2867+
2868+ if maximize && (col.tiles.len() > 1 && !is_tabbed) {
2869+ // This wasn't the only window in its column; extract it into a separate column.
2870+ self.consume_or_expel_window_right(Some(window));
2871+ col_idx += 1;
2872+ col = &mut self.columns[col_idx];
2873+ }
2874+
2875+ col.set_maximized(maximize);
2876+
2877+ // With place_within_column, the tab indicator changes the column size immediately.
2878+ self.data[col_idx].update(col);
2879+
2880+ true
2881+ }
2882+
28152883 pub fn render_above_top_layer(&self) -> bool {
28162884 // Render above the top layer if we're on a fullscreen window and the view is stationary.
28172885 if self.columns.is_empty() {
@@ -2822,7 +2890,9 @@ impl<W: LayoutElement> ScrollingSpace<W> {
28222890 return false;
28232891 }
28242892
2825- self.columns[self.active_column_idx].is_fullscreen()
2893+ self.columns[self.active_column_idx]
2894+ .sizing_mode()
2895+ .is_fullscreen()
28262896 }
28272897
28282898 pub fn render_elements<R: NiriRenderer>(
@@ -2902,7 +2972,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
29022972 let col_render_off = col.render_offset();
29032973
29042974 // Hit the tab indicator.
2905- if col.display_mode == ColumnDisplay::Tabbed && !col.is_fullscreen() {
2975+ if col.display_mode == ColumnDisplay::Tabbed && col.sizing_mode().is_normal() {
29062976 let col_pos = view_off + col_off + col_render_off;
29072977 let col_pos = col_pos.to_physical_precise_round(scale).to_logical(scale);
29082978
@@ -3134,20 +3204,26 @@ impl<W: LayoutElement> ScrollingSpace<W> {
31343204
31353205 let mut snapping_points = Vec::new();
31363206
3137- let left_strut = self.working_area.loc.x;
3138- let right_strut = self.view_size.w - self.working_area.size.w - self.working_area.loc.x;
3139-
31403207 if self.is_centering_focused_column() {
31413208 let mut col_x = 0.;
31423209 for (col_idx, col) in self.columns.iter().enumerate() {
31433210 let col_w = col.width();
3211+ let mode = col.sizing_mode();
31443212
3145- let view_pos = if col.is_fullscreen() {
3213+ let area = if mode.is_maximized() {
3214+ self.parent_area
3215+ } else {
3216+ self.working_area
3217+ };
3218+
3219+ let left_strut = area.loc.x;
3220+
3221+ let view_pos = if mode.is_fullscreen() {
31463222 col_x
3147- } else if self.working_area.size.w <= col_w {
3223+ } else if area.size.w <= col_w {
31483224 col_x - left_strut
31493225 } else {
3150- col_x - (self.working_area.size.w - col_w) / 2. - left_strut
3226+ col_x - (area.size.w - col_w) / 2. - left_strut
31513227 };
31523228 snapping_points.push(Snap { view_pos, col_idx });
31533229
@@ -3160,34 +3236,50 @@ impl<W: LayoutElement> ScrollingSpace<W> {
31603236 );
31613237
31623238 let view_width = self.view_size.w;
3163- let working_area_width = self.working_area.size.w;
31643239 let gaps = self.options.layout.gaps;
31653240
31663241 let snap_points =
31673242 |col_x, col: &Column<W>, prev_col_w: Option<f64>, next_col_w: Option<f64>| {
31683243 let col_w = col.width();
3244+ let mode = col.sizing_mode();
3245+
3246+ let area = if mode.is_maximized() {
3247+ self.parent_area
3248+ } else {
3249+ self.working_area
3250+ };
3251+
3252+ let left_strut = area.loc.x;
3253+ let right_strut = self.view_size.w - area.size.w - area.loc.x;
31693254
31703255 // Normal columns align with the working area, but fullscreen columns align with
31713256 // the view size.
3172- if col.is_fullscreen() {
3257+ if mode.is_fullscreen() {
31733258 let left = col_x;
3174- let right = col_x + col_w;
3259+ let right = left + col_w;
31753260 (left, right)
31763261 } else {
31773262 // Logic from compute_new_view_offset.
3178- let padding = ((working_area_width - col_w) / 2.).clamp(0., gaps);
3263+ let padding = if mode.is_maximized() {
3264+ 0.
3265+ } else {
3266+ ((area.size.w - col_w) / 2.).clamp(0., gaps)
3267+ };
31793268
3180- let center = if self.working_area.size.w <= col_w {
3269+ let center = if area.size.w <= col_w {
31813270 col_x - left_strut
31823271 } else {
3183- col_x - (self.working_area.size.w - col_w) / 2. - left_strut
3272+ col_x - (area.size.w - col_w) / 2. - left_strut
31843273 };
31853274 let is_overflowing = |adj_col_w: Option<f64>| {
31863275 center_on_overflow
31873276 && adj_col_w
31883277 .filter(|adj_col_w| {
3278+ // NOTE: This logic won't work entirely correctly with small
3279+ // fixed-size maximized windows (they have a different area
3280+ // and padding).
31893281 center_on_overflow
3190- && adj_col_w + 3.0 * gaps + col_w > working_area_width
3282+ && adj_col_w + 3.0 * gaps + col_w > area.size.w
31913283 })
31923284 .is_some()
31933285 };
@@ -3211,6 +3303,14 @@ impl<W: LayoutElement> ScrollingSpace<W> {
32113303 //
32123304 // It's ok if leftmost_snap is > rightmost_snap (this happens if the columns on a
32133305 // workspace total up to less than the workspace width).
3306+
3307+ // The first column's left snap isn't actually guaranteed to be the *leftmost* snap.
3308+ // With weird enough left strut and perhaps a maximized small fixed-size window, you
3309+ // can make the second window's left snap be further to the left than the first
3310+ // window's. The same goes for the rightmost snap.
3311+ //
3312+ // This isn't actually a big problem because it's very much an obscure edge case. Just
3313+ // need to make sure the code doesn't panic when that happens.
32143314 let leftmost_snap = snap_points(
32153315 0.,
32163316 &self.columns[0],
@@ -3295,16 +3395,28 @@ impl<W: LayoutElement> ScrollingSpace<W> {
32953395 let col = &self.columns[col_idx];
32963396 let col_x = self.column_x(col_idx);
32973397 let col_w = col.width();
3398+ let mode = col.sizing_mode();
3399+
3400+ let area = if mode.is_maximized() {
3401+ self.parent_area
3402+ } else {
3403+ self.working_area
3404+ };
32983405
3299- if col.is_fullscreen() {
3406+ let left_strut = area.loc.x;
3407+
3408+ if mode.is_fullscreen() {
33003409 if target_snap.view_pos + self.view_size.w < col_x + col_w {
33013410 break;
33023411 }
33033412 } else {
3304- let padding = ((self.working_area.size.w - col_w) / 2.)
3305- .clamp(0., self.options.layout.gaps);
3306- if target_snap.view_pos + left_strut + self.working_area.size.w
3307- < col_x + col_w + padding
3413+ let padding = if mode.is_maximized() {
3414+ 0.
3415+ } else {
3416+ ((area.size.w - col_w) / 2.).clamp(0., self.options.layout.gaps)
3417+ };
3418+
3419+ if target_snap.view_pos + left_strut + area.size.w < col_x + col_w + padding
33083420 {
33093421 break;
33103422 }
@@ -3317,14 +3429,27 @@ impl<W: LayoutElement> ScrollingSpace<W> {
33173429 let col = &self.columns[col_idx];
33183430 let col_x = self.column_x(col_idx);
33193431 let col_w = col.width();
3432+ let mode = col.sizing_mode();
33203433
3321- if col.is_fullscreen() {
3434+ let area = if mode.is_maximized() {
3435+ self.parent_area
3436+ } else {
3437+ self.working_area
3438+ };
3439+
3440+ let left_strut = area.loc.x;
3441+
3442+ if mode.is_fullscreen() {
33223443 if col_x < target_snap.view_pos {
33233444 break;
33243445 }
33253446 } else {
3326- let padding = ((self.working_area.size.w - col_w) / 2.)
3327- .clamp(0., self.options.layout.gaps);
3447+ let padding = if mode.is_maximized() {
3448+ 0.
3449+ } else {
3450+ ((area.size.w - col_w) / 2.).clamp(0., self.options.layout.gaps)
3451+ };
3452+
33283453 if col_x - padding < target_snap.view_pos + left_strut {
33293454 break;
33303455 }
@@ -3339,7 +3464,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
33393464 let delta = active_col_x - new_col_x;
33403465
33413466 if self.active_column_idx != new_col_idx {
3342- self.view_offset_before_fullscreen = None;
3467+ self.view_offset_to_restore = None;
33433468 }
33443469
33453470 self.active_column_idx = new_col_idx;
@@ -3391,7 +3516,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
33913516 .find(|col| col.contains(&window))
33923517 .unwrap();
33933518
3394- if col.is_pending_fullscreen {
3519+ if !col.pending_sizing_mode().is_normal() {
33953520 return false;
33963521 }
33973522
@@ -3637,11 +3762,11 @@ impl<W: LayoutElement> ScrollingSpace<W> {
36373762
36383763 let col = &self.columns[self.active_column_idx];
36393764
3640- if self.view_offset_before_fullscreen.is_some() {
3765+ if self.view_offset_to_restore.is_some() {
36413766 assert!(
3642- col.is_fullscreen(),
3643- "when view_offset_before_fullscreen is set, \
3644- the active column must be fullscreen"
3767+ !col.sizing_mode().is_normal(),
3768+ "when view_offset_to_restore is set, \
3769+ the active column must be fullscreen or maximized"
36453770 );
36463771 }
36473772 }
@@ -3796,6 +3921,7 @@ impl<W: LayoutElement> Column<W> {
37963921 tile: Tile<W>,
37973922 view_size: Size<f64, Logical>,
37983923 working_area: Rectangle<f64, Logical>,
3924+ parent_area: Rectangle<f64, Logical>,
37993925 scale: f64,
38003926 width: ColumnWidth,
38013927 is_full_width: bool,
@@ -3815,29 +3941,33 @@ impl<W: LayoutElement> Column<W> {
38153941 width,
38163942 preset_width_idx: None,
38173943 is_full_width,
3944+ is_pending_maximized: false,
38183945 is_pending_fullscreen: false,
38193946 display_mode,
38203947 tab_indicator: TabIndicator::new(options.layout.tab_indicator),
38213948 move_animation: None,
38223949 view_size,
38233950 working_area,
3951+ parent_area,
38243952 scale,
38253953 clock: tile.clock.clone(),
38263954 options,
38273955 };
38283956
3829- let is_pending_fullscreen = tile.window().is_pending_fullscreen();
3957+ let pending_sizing_mode = tile.window().pending_sizing_mode();
38303958
38313959 rv.add_tile_at(0, tile);
38323960
3833- if is_pending_fullscreen {
3834- rv.set_fullscreen(true);
3961+ match pending_sizing_mode {
3962+ SizingMode::Normal => (),
3963+ SizingMode::Maximized => rv.set_maximized(true),
3964+ SizingMode::Fullscreen => rv.set_fullscreen(true),
38353965 }
38363966
38373967 // Animate the tab indicator for new columns.
38383968 if display_mode == ColumnDisplay::Tabbed
38393969 && !rv.options.layout.tab_indicator.hide_when_single_tab
3840- && !rv.is_fullscreen()
3970+ && rv.sizing_mode().is_normal()
38413971 {
38423972 // Usually new columns are created together with window movement actions. For new
38433973 // windows, we handle that in start_open_animation().
@@ -3852,12 +3982,16 @@ impl<W: LayoutElement> Column<W> {
38523982 &mut self,
38533983 view_size: Size<f64, Logical>,
38543984 working_area: Rectangle<f64, Logical>,
3985+ parent_area: Rectangle<f64, Logical>,
38553986 scale: f64,
38563987 options: Rc<Options>,
38573988 ) {
38583989 let mut update_sizes = false;
38593990
3860- if self.view_size != view_size || self.working_area != working_area {
3991+ if self.view_size != view_size
3992+ || self.working_area != working_area
3993+ || self.parent_area != parent_area
3994+ {
38613995 update_sizes = true;
38623996 }
38633997
@@ -3895,6 +4029,7 @@ impl<W: LayoutElement> Column<W> {
38954029 .update_config(options.layout.tab_indicator);
38964030 self.view_size = view_size;
38974031 self.working_area = working_area;
4032+ self.parent_area = parent_area;
38984033 self.scale = scale;
38994034 self.options = options;
39004035
@@ -3954,7 +4089,7 @@ impl<W: LayoutElement> Column<W> {
39544089 // you don't want that to happen in fullscreen. Also, laying things out correctly when the
39554090 // tab indicator is within the column and the column goes fullscreen, would require too
39564091 // many changes to the code for too little benefit (it's mostly invisible anyway).
3957- let enabled = self.display_mode == ColumnDisplay::Tabbed && !self.is_fullscreen();
4092+ let enabled = self.display_mode == ColumnDisplay::Tabbed && self.sizing_mode().is_normal();
39584093
39594094 self.tab_indicator.update_render_elements(
39604095 enabled,
@@ -3967,6 +4102,24 @@ impl<W: LayoutElement> Column<W> {
39674102 );
39684103 }
39694104
4105+ pub fn is_pending_fullscreen(&self) -> bool {
4106+ self.is_pending_fullscreen
4107+ }
4108+
4109+ pub fn is_pending_maximized(&self) -> bool {
4110+ self.is_pending_maximized
4111+ }
4112+
4113+ pub fn pending_sizing_mode(&self) -> SizingMode {
4114+ if self.is_pending_fullscreen {
4115+ SizingMode::Fullscreen
4116+ } else if self.is_pending_maximized {
4117+ SizingMode::Maximized
4118+ } else {
4119+ SizingMode::Normal
4120+ }
4121+ }
4122+
39704123 pub fn render_offset(&self) -> Point<f64, Logical> {
39714124 let mut offset = Point::from((0., 0.));
39724125
@@ -4040,7 +4193,7 @@ impl<W: LayoutElement> Column<W> {
40404193 /// - is_fullscreen() can suddenly change when consuming/expelling a fullscreen tile into/from a
40414194 /// non-fullscreen column. This can influence the code that saves/restores the unfullscreen
40424195 /// view offset.
4043- fn is_fullscreen(&self) -> bool {
4196+ fn sizing_mode(&self) -> SizingMode {
40444197 // Behaviors that we want:
40454198 //
40464199 // 1. The common case: single tile in a column. Assume no animations. Fullscreening the tile
@@ -4058,7 +4211,23 @@ impl<W: LayoutElement> Column<W> {
40584211 // mode change applies instantly).
40594212 //
40604213 // The logic that satisfies these behaviors is to check if *any* tile is fullscreen.
4061- self.tiles.iter().any(|tile| tile.is_fullscreen())
4214+ let mut any_fullscreen = false;
4215+ let mut any_maximized = false;
4216+ for tile in &self.tiles {
4217+ match tile.sizing_mode() {
4218+ SizingMode::Normal => (),
4219+ SizingMode::Maximized => any_maximized = true,
4220+ SizingMode::Fullscreen => any_fullscreen = true,
4221+ }
4222+ }
4223+
4224+ if any_fullscreen {
4225+ SizingMode::Fullscreen
4226+ } else if any_maximized {
4227+ SizingMode::Maximized
4228+ } else {
4229+ SizingMode::Normal
4230+ }
40624231 }
40634232
40644233 pub fn contains(&self, window: &W::Id) -> bool {
@@ -4102,6 +4271,7 @@ impl<W: LayoutElement> Column<W> {
41024271
41034272 if self.display_mode != ColumnDisplay::Tabbed {
41044273 self.is_pending_fullscreen = false;
4274+ self.is_pending_maximized = false;
41054275 }
41064276
41074277 self.data
@@ -4213,7 +4383,8 @@ impl<W: LayoutElement> Column<W> {
42134383 }
42144384
42154385 fn update_tile_sizes_with_transaction(&mut self, animate: bool, transaction: Transaction) {
4216- if self.is_pending_fullscreen {
4386+ let sizing_mode = self.pending_sizing_mode();
4387+ if matches!(sizing_mode, SizingMode::Fullscreen | SizingMode::Maximized) {
42174388 for (tile_idx, tile) in self.tiles.iter_mut().enumerate() {
42184389 // In tabbed mode, only the visible window participates in the transaction.
42194390 let is_active = tile_idx == self.active_tile_idx;
@@ -4223,7 +4394,11 @@ impl<W: LayoutElement> Column<W> {
42234394 Some(transaction.clone())
42244395 };
42254396
4226- tile.request_fullscreen(animate, transaction);
4397+ if matches!(sizing_mode, SizingMode::Fullscreen) {
4398+ tile.request_fullscreen(animate, transaction);
4399+ } else {
4400+ tile.request_maximized(self.parent_area.size, animate, transaction);
4401+ }
42274402 }
42284403 return;
42294404 }
@@ -4510,7 +4685,7 @@ impl<W: LayoutElement> Column<W> {
45104685 .map(NotNan::into_inner)
45114686 .unwrap();
45124687
4513- if self.display_mode == ColumnDisplay::Tabbed && !self.is_fullscreen() {
4688+ if self.display_mode == ColumnDisplay::Tabbed && self.sizing_mode().is_normal() {
45144689 let extra_size = self.tab_indicator.extra_size(self.tiles.len(), self.scale);
45154690 tiles_width += extra_size.w;
45164691 }
@@ -4875,6 +5050,19 @@ impl<W: LayoutElement> Column<W> {
48755050 self.update_tile_sizes(true);
48765051 }
48775052
5053+ fn set_maximized(&mut self, maximize: bool) {
5054+ if self.is_pending_maximized == maximize {
5055+ return;
5056+ }
5057+
5058+ if maximize {
5059+ assert!(self.tiles.len() == 1 || self.display_mode == ColumnDisplay::Tabbed);
5060+ }
5061+
5062+ self.is_pending_maximized = maximize;
5063+ self.update_tile_sizes(true);
5064+ }
5065+
48785066 fn set_column_display(&mut self, display: ColumnDisplay) {
48795067 if self.display_mode == display {
48805068 return;
@@ -4936,8 +5124,13 @@ impl<W: LayoutElement> Column<W> {
49365124 fn tiles_origin(&self) -> Point<f64, Logical> {
49375125 let mut origin = Point::from((0., 0.));
49385126
4939- if self.is_fullscreen() {
4940- return origin;
5127+ match self.sizing_mode() {
5128+ SizingMode::Normal => (),
5129+ SizingMode::Maximized => {
5130+ origin.y += self.parent_area.loc.y;
5131+ return origin;
5132+ }
5133+ SizingMode::Fullscreen => return origin,
49415134 }
49425135
49435136 origin.y += self.working_area.loc.y + self.options.layout.gaps;
@@ -5096,7 +5289,7 @@ impl<W: LayoutElement> Column<W> {
50965289
50975290 // Animate the appearance of the tab indicator.
50985291 if self.display_mode == ColumnDisplay::Tabbed
5099- && !self.is_fullscreen()
5292+ && self.sizing_mode().is_normal()
51005293 && self.tiles.len() == 1
51015294 && !self.tab_indicator.config().hide_when_single_tab
51025295 {
@@ -5119,7 +5312,7 @@ impl<W: LayoutElement> Column<W> {
51195312 assert!(self.active_tile_idx < self.tiles.len());
51205313 assert_eq!(self.tiles.len(), self.data.len());
51215314
5122- if self.is_pending_fullscreen {
5315+ if !self.pending_sizing_mode().is_normal() {
51235316 assert!(self.tiles.len() == 1 || self.display_mode == ColumnDisplay::Tabbed);
51245317 }
51255318
@@ -5151,8 +5344,8 @@ impl<W: LayoutElement> Column<W> {
51515344 assert_eq!(self.clock, tile.clock);
51525345 assert_eq!(self.scale, tile.scale());
51535346 assert_eq!(
5154- self.is_pending_fullscreen,
5155- tile.window().is_pending_fullscreen()
5347+ self.pending_sizing_mode(),
5348+ tile.window().pending_sizing_mode()
51565349 );
51575350 assert_eq!(self.view_size, tile.view_size());
51585351 tile.verify_invariants();
@@ -5178,7 +5371,7 @@ impl<W: LayoutElement> Column<W> {
51785371 tile.tile_height_for_window_height(f64::from(requested_size.h));
51795372 let min_tile_height = f64::max(1., tile.min_size_nonfullscreen().h);
51805373
5181- if !self.is_pending_fullscreen
5374+ if self.pending_sizing_mode().is_normal()
51825375 && self.scale.round() == self.scale
51835376 && working_size.h.round() == working_size.h
51845377 && gaps.round() == gaps
src/layout/tests.rsmodified+142 -21
@@ -33,9 +33,9 @@ struct TestWindowInner {
3333 forced_size: Cell<Option<Size<i32, Logical>>>,
3434 min_size: Size<i32, Logical>,
3535 max_size: Size<i32, Logical>,
36- pending_fullscreen: Cell<bool>,
36+ pending_sizing_mode: Cell<SizingMode>,
3737 pending_activated: Cell<bool>,
38- is_fullscreen: Cell<bool>,
38+ sizing_mode: Cell<SizingMode>,
3939 is_windowed_fullscreen: Cell<bool>,
4040 is_pending_windowed_fullscreen: Cell<bool>,
4141 animate_next_configure: Cell<bool>,
@@ -81,9 +81,9 @@ impl TestWindow {
8181 forced_size: Cell::new(None),
8282 min_size: params.min_max_size.0,
8383 max_size: params.min_max_size.1,
84- pending_fullscreen: Cell::new(false),
84+ pending_sizing_mode: Cell::new(SizingMode::Normal),
8585 pending_activated: Cell::new(false),
86- is_fullscreen: Cell::new(false),
86+ sizing_mode: Cell::new(SizingMode::Normal),
8787 is_windowed_fullscreen: Cell::new(false),
8888 is_pending_windowed_fullscreen: Cell::new(false),
8989 animate_next_configure: Cell::new(false),
@@ -126,8 +126,8 @@ impl TestWindow {
126126
127127 self.0.animate_next_configure.set(false);
128128
129- if self.0.is_fullscreen.get() != self.0.pending_fullscreen.get() {
130- self.0.is_fullscreen.set(self.0.pending_fullscreen.get());
129+ if self.0.sizing_mode.get() != self.0.pending_sizing_mode.get() {
130+ self.0.sizing_mode.set(self.0.pending_sizing_mode.get());
131131 changed = true;
132132 }
133133
@@ -175,7 +175,7 @@ impl LayoutElement for TestWindow {
175175 fn request_size(
176176 &mut self,
177177 size: Size<i32, Logical>,
178- is_fullscreen: bool,
178+ mode: SizingMode,
179179 _animate: bool,
180180 _transaction: Option<Transaction>,
181181 ) {
@@ -184,9 +184,9 @@ impl LayoutElement for TestWindow {
184184 self.0.animate_next_configure.set(true);
185185 }
186186
187- self.0.pending_fullscreen.set(is_fullscreen);
187+ self.0.pending_sizing_mode.set(mode);
188188
189- if is_fullscreen {
189+ if mode.is_fullscreen() {
190190 self.0.is_pending_windowed_fullscreen.set(false);
191191 }
192192 }
@@ -235,20 +235,12 @@ impl LayoutElement for TestWindow {
235235
236236 fn set_floating(&mut self, _floating: bool) {}
237237
238- fn is_fullscreen(&self) -> bool {
239- if self.0.is_windowed_fullscreen.get() {
240- return false;
241- }
242-
243- self.0.is_fullscreen.get()
238+ fn sizing_mode(&self) -> SizingMode {
239+ self.0.sizing_mode.get()
244240 }
245241
246- fn is_pending_fullscreen(&self) -> bool {
247- if self.0.is_pending_windowed_fullscreen.get() {
248- return false;
249- }
250-
251- self.0.pending_fullscreen.get()
242+ fn pending_sizing_mode(&self) -> SizingMode {
243+ self.0.pending_sizing_mode.get()
252244 }
253245
254246 fn requested_size(&self) -> Option<Size<i32, Logical>> {
@@ -585,6 +577,10 @@ enum Op {
585577 id: Option<usize>,
586578 },
587579 MaximizeColumn,
580+ MaximizeWindowToEdges {
581+ #[proptest(strategy = "proptest::option::of(1..=5usize)")]
582+ id: Option<usize>,
583+ },
588584 SetColumnWidth(#[proptest(strategy = "arbitrary_size_change()")] SizeChange),
589585 SetWindowWidth {
590586 #[proptest(strategy = "proptest::option::of(1..=5usize)")]
@@ -1310,6 +1306,16 @@ impl Op {
13101306 layout.toggle_window_height(id.as_ref(), false);
13111307 }
13121308 Op::MaximizeColumn => layout.toggle_full_width(),
1309+ Op::MaximizeWindowToEdges { id } => {
1310+ let id = id.or_else(|| layout.focus().map(|win| *win.id()));
1311+ let Some(id) = id else {
1312+ return;
1313+ };
1314+ if !layout.has_window(&id) {
1315+ return;
1316+ }
1317+ layout.toggle_maximized(&id);
1318+ }
13131319 Op::SetColumnWidth(change) => layout.set_column_width(change),
13141320 Op::SetWindowWidth { id, change } => {
13151321 let id = id.filter(|id| layout.has_window(id));
@@ -1674,6 +1680,9 @@ fn operations_dont_panic() {
16741680 Op::FullscreenWindow(1),
16751681 Op::FullscreenWindow(2),
16761682 Op::FullscreenWindow(3),
1683+ Op::MaximizeWindowToEdges { id: Some(1) },
1684+ Op::MaximizeWindowToEdges { id: Some(2) },
1685+ Op::MaximizeWindowToEdges { id: Some(3) },
16771686 Op::FocusColumnLeft,
16781687 Op::FocusColumnRight,
16791688 Op::FocusColumnRightOrFirst,
@@ -1829,6 +1838,9 @@ fn operations_from_starting_state_dont_panic() {
18291838 Op::FullscreenWindow(1),
18301839 Op::FullscreenWindow(2),
18311840 Op::FullscreenWindow(3),
1841+ Op::MaximizeWindowToEdges { id: Some(1) },
1842+ Op::MaximizeWindowToEdges { id: Some(2) },
1843+ Op::MaximizeWindowToEdges { id: Some(3) },
18321844 Op::SetFullscreenWindow {
18331845 window: 1,
18341846 is_fullscreen: false,
@@ -3492,6 +3504,115 @@ fn move_column_to_workspace_focus_false_on_floating_window() {
34923504 assert_eq!(monitors[0].active_workspace_idx, 0);
34933505 }
34943506
3507+#[test]
3508+fn restore_to_floating_persists_across_fullscreen_maximize() {
3509+ let ops = [
3510+ Op::AddOutput(1),
3511+ Op::AddWindow {
3512+ params: TestWindowParams::new(1),
3513+ },
3514+ Op::ToggleWindowFloating { id: None },
3515+ // Maximize then fullscreen.
3516+ Op::MaximizeWindowToEdges { id: None },
3517+ Op::FullscreenWindow(1),
3518+ // Unfullscreen.
3519+ Op::FullscreenWindow(1),
3520+ ];
3521+
3522+ let mut layout = check_ops(ops);
3523+
3524+ // Unfullscreening should return the window to the maximized state.
3525+ let scrolling = layout.active_workspace().unwrap().scrolling();
3526+ assert!(scrolling.tiles().next().is_some());
3527+
3528+ let ops = [
3529+ // Unmaximize.
3530+ Op::MaximizeWindowToEdges { id: None },
3531+ ];
3532+ check_ops_on_layout(&mut layout, ops);
3533+
3534+ // Unmaximize should return the window back to floating.
3535+ let scrolling = layout.active_workspace().unwrap().scrolling();
3536+ assert!(scrolling.tiles().next().is_none());
3537+}
3538+
3539+#[test]
3540+fn unmaximize_during_fullscreen_does_not_float() {
3541+ let ops = [
3542+ Op::AddOutput(1),
3543+ Op::AddWindow {
3544+ params: TestWindowParams::new(1),
3545+ },
3546+ Op::ToggleWindowFloating { id: None },
3547+ // Maximize then fullscreen.
3548+ Op::MaximizeWindowToEdges { id: None },
3549+ Op::FullscreenWindow(1),
3550+ // Unmaximize.
3551+ Op::MaximizeWindowToEdges { id: None },
3552+ ];
3553+
3554+ let mut layout = check_ops(ops);
3555+
3556+ // Unmaximize shouldn't have changed the window state since it's fullscreen.
3557+ let scrolling = layout.active_workspace().unwrap().scrolling();
3558+ assert!(scrolling.tiles().next().is_some());
3559+
3560+ let ops = [
3561+ // Unfullscreen.
3562+ Op::FullscreenWindow(1),
3563+ ];
3564+ check_ops_on_layout(&mut layout, ops);
3565+
3566+ // Unfullscreen should return the window back to floating.
3567+ let scrolling = layout.active_workspace().unwrap().scrolling();
3568+ assert!(scrolling.tiles().next().is_none());
3569+}
3570+
3571+#[test]
3572+fn move_column_to_workspace_maximize_and_fullscreen() {
3573+ let ops = [
3574+ Op::AddOutput(1),
3575+ Op::AddWindow {
3576+ params: TestWindowParams::new(1),
3577+ },
3578+ Op::MaximizeWindowToEdges { id: None },
3579+ Op::FullscreenWindow(1),
3580+ Op::MoveColumnToWorkspaceDown(true),
3581+ Op::FullscreenWindow(1),
3582+ ];
3583+
3584+ let layout = check_ops(ops);
3585+ let (_, win) = layout.windows().next().unwrap();
3586+
3587+ // Unfullscreening should return to maximized because the window was maximized before.
3588+ assert_eq!(win.pending_sizing_mode(), SizingMode::Maximized);
3589+}
3590+
3591+#[test]
3592+fn move_window_to_workspace_maximize_and_fullscreen() {
3593+ let ops = [
3594+ Op::AddOutput(1),
3595+ Op::AddWindow {
3596+ params: TestWindowParams::new(1),
3597+ },
3598+ Op::MaximizeWindowToEdges { id: None },
3599+ Op::FullscreenWindow(1),
3600+ Op::MoveWindowToWorkspaceDown(true),
3601+ Op::FullscreenWindow(1),
3602+ ];
3603+
3604+ let layout = check_ops(ops);
3605+ let (_, win) = layout.windows().next().unwrap();
3606+
3607+ // Unfullscreening should return to maximized because the window was maximized before.
3608+ //
3609+ // FIXME: it currently doesn't because windows themselves can only be either fullscreen or
3610+ // maximized. So when a window is fullscreen, whether it is also maximized or not is stored in
3611+ // the column. MoveWindowToWorkspace removes the window from the column and this information is
3612+ // forgotten.
3613+ assert_eq!(win.pending_sizing_mode(), SizingMode::Normal);
3614+}
3615+
34953616 fn parent_id_causes_loop(layout: &Layout<TestWindow>, id: usize, mut parent_id: usize) -> bool {
34963617 if parent_id == id {
34973618 return true;
src/layout/tile.rsmodified+124 -47
@@ -16,6 +16,7 @@ use super::{
1616 SizeFrac, RESIZE_ANIMATION_THRESHOLD,
1717 };
1818 use crate::animation::{Animation, Clock};
19+use crate::layout::SizingMode;
1920 use crate::niri_render_elements;
2021 use crate::render_helpers::border::BorderRenderElement;
2122 use crate::render_helpers::clipped_surface::{ClippedSurfaceRenderElement, RoundedCornerDamage};
@@ -45,17 +46,17 @@ pub struct Tile<W: LayoutElement> {
4546 /// The shadow around the window.
4647 shadow: Shadow,
4748
48- /// Whether this tile is fullscreen.
49+ /// This tile's current sizing mode.
4950 ///
50- /// This will update only when the `window` actually goes fullscreen, rather than right away,
51- /// to avoid black backdrop flicker before the window has had a chance to resize.
52- is_fullscreen: bool,
51+ /// This will update only when the `window` actually goes maximized or fullscreen, rather than
52+ /// right away, to avoid black backdrop flicker before the window has had a chance to resize.
53+ sizing_mode: SizingMode,
5354
5455 /// The black backdrop for fullscreen windows.
5556 fullscreen_backdrop: SolidColorBuffer,
5657
5758 /// Whether the tile should float upon unfullscreening.
58- pub(super) unfullscreen_to_floating: bool,
59+ pub(super) restore_to_floating: bool,
5960
6061 /// The size that the window should assume when going floating.
6162 ///
@@ -146,6 +147,8 @@ struct ResizeAnimation {
146147 // Note that this can be set even if this specific resize is between two non-fullscreen states,
147148 // for example when issuing a new resize during an unfullscreen resize.
148149 fullscreen_progress: Option<Animation>,
150+ // Similar to above but for fullscreen-or-maximized.
151+ expanded_progress: Option<Animation>,
149152 }
150153
151154 #[derive(Debug)]
@@ -178,16 +181,16 @@ impl<W: LayoutElement> Tile<W> {
178181 let border_config = options.layout.border.merged_with(&rules.border);
179182 let focus_ring_config = options.layout.focus_ring.merged_with(&rules.focus_ring);
180183 let shadow_config = options.layout.shadow.merged_with(&rules.shadow);
181- let is_fullscreen = window.is_fullscreen();
184+ let sizing_mode = window.sizing_mode();
182185
183186 Self {
184187 window,
185188 border: FocusRing::new(border_config.into()),
186189 focus_ring: FocusRing::new(focus_ring_config),
187190 shadow: Shadow::new(shadow_config),
188- is_fullscreen,
191+ sizing_mode,
189192 fullscreen_backdrop: SolidColorBuffer::new((0., 0.), [0., 0., 0., 1.]),
190- unfullscreen_to_floating: false,
193+ restore_to_floating: false,
191194 floating_window_size: None,
192195 floating_pos: None,
193196 floating_preset_width_idx: None,
@@ -248,8 +251,8 @@ impl<W: LayoutElement> Tile<W> {
248251 }
249252
250253 pub fn update_window(&mut self) {
251- let was_fullscreen = self.is_fullscreen;
252- self.is_fullscreen = self.window.is_fullscreen();
254+ let prev_sizing_mode = self.sizing_mode;
255+ self.sizing_mode = self.window.sizing_mode();
253256
254257 if let Some(animate_from) = self.window.take_animation_snapshot() {
255258 let params = if let Some(resize) = self.resize_animation.take() {
@@ -265,10 +268,10 @@ impl<W: LayoutElement> Tile<W> {
265268 size.h = size_from.h + (size.h - size_from.h) * val;
266269
267270 let mut tile_size = animate_from.size;
268- if was_fullscreen {
271+ if prev_sizing_mode.is_fullscreen() {
269272 tile_size.w = f64::max(tile_size.w, self.view_size.w);
270273 tile_size.h = f64::max(tile_size.h, self.view_size.h);
271- } else if !self.border.is_off() {
274+ } else if prev_sizing_mode.is_normal() && !self.border.is_off() {
272275 let width = self.border.width();
273276 tile_size.w += width * 2.;
274277 tile_size.h += width * 2.;
@@ -280,29 +283,56 @@ impl<W: LayoutElement> Tile<W> {
280283 let fullscreen_from = resize
281284 .fullscreen_progress
282285 .map(|anim| anim.clamped_value().clamp(0., 1.))
283- .unwrap_or(if was_fullscreen { 1. } else { 0. });
286+ .unwrap_or(if prev_sizing_mode.is_fullscreen() {
287+ 1.
288+ } else {
289+ 0.
290+ });
291+
292+ let expanded_from = resize
293+ .expanded_progress
294+ .map(|anim| anim.clamped_value().clamp(0., 1.))
295+ .unwrap_or(if prev_sizing_mode.is_normal() { 0. } else { 1. });
284296
285297 // Also try to reuse the existing offscreen buffer if we have one.
286- (size, tile_size, fullscreen_from, resize.offscreen)
298+ (
299+ size,
300+ tile_size,
301+ fullscreen_from,
302+ expanded_from,
303+ resize.offscreen,
304+ )
287305 } else {
288306 let size = animate_from.size;
289307
290308 // Compute like in tile_size().
291309 let mut tile_size = size;
292- if was_fullscreen {
310+ if prev_sizing_mode.is_fullscreen() {
293311 tile_size.w = f64::max(tile_size.w, self.view_size.w);
294312 tile_size.h = f64::max(tile_size.h, self.view_size.h);
295- } else if !self.border.is_off() {
313+ } else if prev_sizing_mode.is_normal() && !self.border.is_off() {
296314 let width = self.border.width();
297315 tile_size.w += width * 2.;
298316 tile_size.h += width * 2.;
299317 }
300318
301- let fullscreen_from = if was_fullscreen { 1. } else { 0. };
319+ let fullscreen_from = if prev_sizing_mode.is_fullscreen() {
320+ 1.
321+ } else {
322+ 0.
323+ };
324+
325+ let expanded_from = if prev_sizing_mode.is_normal() { 0. } else { 1. };
302326
303- (size, tile_size, fullscreen_from, OffscreenBuffer::default())
327+ (
328+ size,
329+ tile_size,
330+ fullscreen_from,
331+ expanded_from,
332+ OffscreenBuffer::default(),
333+ )
304334 };
305- let (size_from, tile_size_from, fullscreen_from, offscreen) = params;
335+ let (size_from, tile_size_from, fullscreen_from, expanded_from, offscreen) = params;
306336
307337 let change = self.window.size().to_f64().to_point() - size_from.to_point();
308338 let change = f64::max(change.x.abs(), change.y.abs());
@@ -318,9 +348,16 @@ impl<W: LayoutElement> Tile<W> {
318348 self.options.animations.window_resize.anim,
319349 );
320350
321- let fullscreen_to = if self.is_fullscreen { 1. } else { 0. };
351+ let fullscreen_to = if self.sizing_mode.is_fullscreen() {
352+ 1.
353+ } else {
354+ 0.
355+ };
356+ let expanded_to = if self.sizing_mode.is_normal() { 0. } else { 1. };
322357 let fullscreen_progress = (fullscreen_from != fullscreen_to)
323358 .then(|| anim.restarted(fullscreen_from, fullscreen_to, 0.));
359+ let expanded_progress = (expanded_from != expanded_to)
360+ .then(|| anim.restarted(expanded_from, expanded_to, 0.));
324361
325362 self.resize_animation = Some(ResizeAnimation {
326363 anim,
@@ -329,6 +366,7 @@ impl<W: LayoutElement> Tile<W> {
329366 offscreen,
330367 tile_size_from,
331368 fullscreen_progress,
369+ expanded_progress,
332370 });
333371 } else {
334372 self.resize_animation = None;
@@ -406,7 +444,7 @@ impl<W: LayoutElement> Tile<W> {
406444 pub fn update_render_elements(&mut self, is_active: bool, view_rect: Rectangle<f64, Logical>) {
407445 let rules = self.window.rules();
408446 let animated_tile_size = self.animated_tile_size();
409- let fullscreen_progress = self.fullscreen_progress();
447+ let expanded_progress = self.expanded_progress();
410448
411449 let draw_border_with_background = rules
412450 .draw_border_with_background
@@ -425,7 +463,7 @@ impl<W: LayoutElement> Tile<W> {
425463 .map_or(CornerRadius::default(), |radius| {
426464 radius.expanded_by(border_width as f32)
427465 })
428- .scaled_by(1. - fullscreen_progress as f32);
466+ .scaled_by(1. - expanded_progress as f32);
429467 self.border.update_render_elements(
430468 border_window_size,
431469 is_active,
@@ -437,7 +475,7 @@ impl<W: LayoutElement> Tile<W> {
437475 ),
438476 radius,
439477 self.scale,
440- 1. - fullscreen_progress as f32,
478+ 1. - expanded_progress as f32,
441479 );
442480
443481 let radius = if self.visual_border_width().is_some() {
@@ -446,17 +484,17 @@ impl<W: LayoutElement> Tile<W> {
446484 rules
447485 .geometry_corner_radius
448486 .unwrap_or_default()
449- .scaled_by(1. - fullscreen_progress as f32)
487+ .scaled_by(1. - expanded_progress as f32)
450488 };
451489 self.shadow.update_render_elements(
452490 animated_tile_size,
453491 is_active,
454492 radius,
455493 self.scale,
456- 1. - fullscreen_progress as f32,
494+ 1. - expanded_progress as f32,
457495 );
458496
459- let draw_focus_ring_with_background = if self.border.is_off() && fullscreen_progress < 1. {
497+ let draw_focus_ring_with_background = if self.border.is_off() {
460498 draw_border_with_background
461499 } else {
462500 false
@@ -470,7 +508,7 @@ impl<W: LayoutElement> Tile<W> {
470508 view_rect,
471509 radius,
472510 self.scale,
473- 1. - fullscreen_progress as f32,
511+ 1. - expanded_progress as f32,
474512 );
475513
476514 self.fullscreen_backdrop.resize(animated_tile_size);
@@ -609,8 +647,8 @@ impl<W: LayoutElement> Tile<W> {
609647 &mut self.window
610648 }
611649
612- pub fn is_fullscreen(&self) -> bool {
613- self.is_fullscreen
650+ pub fn sizing_mode(&self) -> SizingMode {
651+ self.sizing_mode
614652 }
615653
616654 fn fullscreen_progress(&self) -> f64 {
@@ -620,16 +658,30 @@ impl<W: LayoutElement> Tile<W> {
620658 }
621659 }
622660
623- if self.is_fullscreen {
661+ if self.sizing_mode.is_fullscreen() {
624662 1.
625663 } else {
626664 0.
627665 }
628666 }
629667
668+ fn expanded_progress(&self) -> f64 {
669+ if let Some(resize) = &self.resize_animation {
670+ if let Some(anim) = &resize.expanded_progress {
671+ return anim.clamped_value().clamp(0., 1.);
672+ }
673+ }
674+
675+ if self.sizing_mode.is_normal() {
676+ 0.
677+ } else {
678+ 1.
679+ }
680+ }
681+
630682 /// Returns `None` if the border is hidden and `Some(width)` if it should be shown.
631683 pub fn effective_border_width(&self) -> Option<f64> {
632- if self.is_fullscreen {
684+ if !self.sizing_mode.is_normal() {
633685 return None;
634686 }
635687
@@ -645,10 +697,10 @@ impl<W: LayoutElement> Tile<W> {
645697 return None;
646698 }
647699
648- let fullscreen_progress = self.fullscreen_progress();
700+ let expanded_progress = self.expanded_progress();
649701
650- // Only hide the border when fully fullscreen to avoid jarring border appearance.
651- if fullscreen_progress == 1. {
702+ // Only hide the border when fully expanded to avoid jarring border appearance.
703+ if expanded_progress == 1. {
652704 return None;
653705 }
654706
@@ -688,7 +740,7 @@ impl<W: LayoutElement> Tile<W> {
688740 pub fn tile_size(&self) -> Size<f64, Logical> {
689741 let mut size = self.window_size();
690742
691- if self.is_fullscreen {
743+ if self.sizing_mode.is_fullscreen() {
692744 // Normally we'd just return the fullscreen size here, but this makes things a bit
693745 // nicer if a fullscreen window is bigger than the fullscreen size for some reason.
694746 size.w = f64::max(size.w, self.view_size.w);
@@ -707,7 +759,7 @@ impl<W: LayoutElement> Tile<W> {
707759 pub fn tile_expected_or_current_size(&self) -> Size<f64, Logical> {
708760 let mut size = self.window_expected_or_current_size();
709761
710- if self.is_fullscreen {
762+ if self.sizing_mode.is_fullscreen() {
711763 // Normally we'd just return the fullscreen size here, but this makes things a bit
712764 // nicer if a fullscreen window is bigger than the fullscreen size for some reason.
713765 size.w = f64::max(size.w, self.view_size.w);
@@ -836,8 +888,12 @@ impl<W: LayoutElement> Tile<W> {
836888 // The size request has to be i32 unfortunately, due to Wayland. We floor here instead of
837889 // round to avoid situations where proportionally-sized columns don't fit on the screen
838890 // exactly.
839- self.window
840- .request_size(size.to_i32_floor(), false, animate, transaction);
891+ self.window.request_size(
892+ size.to_i32_floor(),
893+ SizingMode::Normal,
894+ animate,
895+ transaction,
896+ );
841897 }
842898
843899 pub fn tile_width_for_window_width(&self, size: f64) -> f64 {
@@ -872,9 +928,27 @@ impl<W: LayoutElement> Tile<W> {
872928 }
873929 }
874930
931+ pub fn request_maximized(
932+ &mut self,
933+ size: Size<f64, Logical>,
934+ animate: bool,
935+ transaction: Option<Transaction>,
936+ ) {
937+ self.window.request_size(
938+ size.to_i32_round(),
939+ SizingMode::Maximized,
940+ animate,
941+ transaction,
942+ );
943+ }
944+
875945 pub fn request_fullscreen(&mut self, animate: bool, transaction: Option<Transaction>) {
876- self.window
877- .request_size(self.view_size.to_i32_round(), true, animate, transaction);
946+ self.window.request_size(
947+ self.view_size.to_i32_round(),
948+ SizingMode::Fullscreen,
949+ animate,
950+ transaction,
951+ );
878952 }
879953
880954 pub fn min_size_nonfullscreen(&self) -> Size<f64, Logical> {
@@ -933,6 +1007,7 @@ impl<W: LayoutElement> Tile<W> {
9331007
9341008 let scale = Scale::from(self.scale);
9351009 let fullscreen_progress = self.fullscreen_progress();
1010+ let expanded_progress = self.expanded_progress();
9361011
9371012 let win_alpha = if self.window.is_ignoring_opacity_window_rule() {
9381013 1.
@@ -968,7 +1043,7 @@ impl<W: LayoutElement> Tile<W> {
9681043 let radius = rules
9691044 .geometry_corner_radius
9701045 .unwrap_or_default()
971- .scaled_by(1. - fullscreen_progress as f32);
1046+ .scaled_by(1. - expanded_progress as f32);
9721047
9731048 // If we're resizing, try to render a shader, or a fallback.
9741049 let mut resize_shader = None;
@@ -1153,7 +1228,7 @@ impl<W: LayoutElement> Tile<W> {
11531228 .map_or(CornerRadius::default(), |radius| {
11541229 radius.expanded_by(border_width as f32)
11551230 })
1156- .scaled_by(1. - fullscreen_progress as f32);
1231+ .scaled_by(1. - expanded_progress as f32);
11571232
11581233 let size = self.fullscreen_backdrop.size();
11591234 let color = self.fullscreen_backdrop.color();
@@ -1191,13 +1266,15 @@ impl<W: LayoutElement> Tile<W> {
11911266 });
11921267 let rv = rv.chain(elem.into_iter().flatten());
11931268
1194- // Hide the focus ring when fullscreened. It's not normally visible anyway due to being
1195- // outside the monitor, but it is visible in the overview (which is a bit weird).
1196- let elem = (focus_ring && fullscreen_progress < 1.)
1269+ // Hide the focus ring when maximized/fullscreened. It's not normally visible anyway due to
1270+ // being outside the monitor or obscured by a solid colored bar, but it is visible under
1271+ // semitransparent bars in maximized state (which is a bit weird) and in the overview (also
1272+ // a bit weird).
1273+ let elem = (focus_ring && expanded_progress < 1.)
11971274 .then(|| self.focus_ring.render(renderer, location).map(Into::into));
11981275 let rv = rv.chain(elem.into_iter().flatten());
11991276
1200- let elem = (fullscreen_progress < 1.)
1277+ let elem = (expanded_progress < 1.)
12011278 .then(|| self.shadow.render(renderer, location).map(Into::into));
12021279 rv.chain(elem.into_iter().flatten())
12031280 }
@@ -1328,7 +1405,7 @@ impl<W: LayoutElement> Tile<W> {
13281405 pub fn verify_invariants(&self) {
13291406 use approx::assert_abs_diff_eq;
13301407
1331- assert_eq!(self.is_fullscreen, self.window.is_fullscreen());
1408+ assert_eq!(self.sizing_mode, self.window.sizing_mode());
13321409
13331410 let scale = self.scale;
13341411 let size = self.tile_size();
src/layout/workspace.rsmodified+106 -25
@@ -611,16 +611,16 @@ impl<W: LayoutElement> Workspace<W> {
611611 is_floating: bool,
612612 ) {
613613 self.enter_output_for_window(tile.window());
614- tile.unfullscreen_to_floating = is_floating;
614+ tile.restore_to_floating = is_floating;
615615
616616 match target {
617617 WorkspaceAddWindowTarget::Auto => {
618618 // Don't steal focus from an active fullscreen window.
619619 let activate = activate.map_smart(|| !self.is_active_pending_fullscreen());
620620
621- // If the tile is pending fullscreen, open it in the scrolling layout where it can
622- // go fullscreen.
623- if is_floating && !tile.window().is_pending_fullscreen() {
621+ // If the tile is pending maximized or fullscreen, open it in the scrolling layout
622+ // where it can do that.
623+ if is_floating && tile.window().pending_sizing_mode().is_normal() {
624624 self.floating.add_tile(tile, activate);
625625
626626 if activate || self.scrolling.is_empty() {
@@ -649,7 +649,7 @@ impl<W: LayoutElement> Workspace<W> {
649649
650650 let floating_has_window = self.floating.has_window(next_to);
651651
652- if is_floating && !tile.window().is_pending_fullscreen() {
652+ if is_floating && tile.window().pending_sizing_mode().is_normal() {
653653 if floating_has_window {
654654 self.floating.add_tile_above(next_to, tile, activate);
655655 } else {
@@ -869,6 +869,8 @@ impl<W: LayoutElement> Workspace<W> {
869869 toplevel.with_pending_state(|state| {
870870 if state.states.contains(xdg_toplevel::State::Fullscreen) {
871871 state.size = Some(self.view_size.to_i32_round());
872+ } else if state.states.contains(xdg_toplevel::State::Maximized) {
873+ state.size = Some(self.working_area.size.to_i32_round());
872874 } else {
873875 let size =
874876 self.new_window_size(width, height, is_floating, rules, (min_size, max_size));
@@ -1257,10 +1259,10 @@ impl<W: LayoutElement> Workspace<W> {
12571259 }
12581260
12591261 pub fn set_fullscreen(&mut self, window: &W::Id, is_fullscreen: bool) {
1260- let mut unfullscreen_to_floating = false;
1262+ let mut restore_to_floating = false;
12611263 if self.floating.has_window(window) {
12621264 if is_fullscreen {
1263- unfullscreen_to_floating = true;
1265+ restore_to_floating = true;
12641266 self.toggle_window_floating(Some(window));
12651267 } else {
12661268 // Floating windows are never fullscreen, so this is an unfullscreen request for an
@@ -1271,30 +1273,44 @@ impl<W: LayoutElement> Workspace<W> {
12711273 // The window is in the scrolling layout and we're requesting an unfullscreen. If it is
12721274 // indeed fullscreen (i.e. this isn't a duplicate unfullscreen request), then we may
12731275 // need to unfullscreen into floating.
1274- let tile = self
1276+ let col = self
12751277 .scrolling
1276- .tiles()
1277- .find(|tile| tile.window().id() == window)
1278+ .columns()
1279+ .find(|col| col.contains(window))
12781280 .unwrap();
1279- if tile.window().is_pending_fullscreen() && tile.unfullscreen_to_floating {
1280- // Unfullscreen and float in one call so it has a chance to notice and request a
1281- // (0, 0) size, rather than the scrolling column size.
1282- self.toggle_window_floating(Some(window));
1283- return;
1281+
1282+ // When going from fullscreen to maximized, don't consider restore_to_floating yet.
1283+ if col.is_pending_fullscreen() && !col.is_pending_maximized() {
1284+ let (tile, _) = col
1285+ .tiles()
1286+ .find(|(tile, _)| tile.window().id() == window)
1287+ .unwrap();
1288+ if tile.restore_to_floating {
1289+ // Unfullscreen and float in one call so it has a chance to notice and request a
1290+ // (0, 0) size, rather than the scrolling column size.
1291+ self.toggle_window_floating(Some(window));
1292+ return;
1293+ }
12841294 }
12851295 }
12861296
1287- let changed = self.scrolling.set_fullscreen(window, is_fullscreen);
1297+ let tile = self
1298+ .scrolling
1299+ .tiles()
1300+ .find(|tile| tile.window().id() == window)
1301+ .unwrap();
1302+ let was_normal = tile.window().pending_sizing_mode().is_normal();
12881303
1289- // When going to fullscreen, remember if we should unfullscreen to floating.
1290- if changed && is_fullscreen {
1291- let tile = self
1292- .scrolling
1293- .tiles_mut()
1294- .find(|tile| tile.window().id() == window)
1295- .unwrap();
1304+ self.scrolling.set_fullscreen(window, is_fullscreen);
12961305
1297- tile.unfullscreen_to_floating = unfullscreen_to_floating;
1306+ // When going from normal to fullscreen, remember if we should unfullscreen to floating.
1307+ let tile = self
1308+ .scrolling
1309+ .tiles_mut()
1310+ .find(|tile| tile.window().id() == window)
1311+ .unwrap();
1312+ if was_normal && !tile.window().pending_sizing_mode().is_normal() {
1313+ tile.restore_to_floating = restore_to_floating;
12981314 }
12991315 }
13001316
@@ -1303,10 +1319,75 @@ impl<W: LayoutElement> Workspace<W> {
13031319 .tiles()
13041320 .find(|tile| tile.window().id() == window)
13051321 .unwrap();
1306- let current = tile.window().is_pending_fullscreen();
1322+ let current = tile.window().pending_sizing_mode().is_fullscreen();
13071323 self.set_fullscreen(window, !current);
13081324 }
13091325
1326+ pub fn set_maximized(&mut self, window: &W::Id, maximize: bool) {
1327+ let mut restore_to_floating = false;
1328+ if self.floating.has_window(window) {
1329+ if maximize {
1330+ restore_to_floating = true;
1331+ self.toggle_window_floating(Some(window));
1332+ } else {
1333+ // Floating windows are never maximized, so this is an unmaximize request for an
1334+ // already unmaximized window.
1335+ return;
1336+ }
1337+ } else if !maximize {
1338+ // The window is in the scrolling layout and we're requesting to unmaximize. If it is
1339+ // indeed maximized (i.e. this isn't a duplicate unmaximize request), then we may
1340+ // need to unmaximize into floating.
1341+ let tile = self
1342+ .scrolling
1343+ .tiles()
1344+ .find(|tile| tile.window().id() == window)
1345+ .unwrap();
1346+ // The tile cannot unmaximize into fullscreen (pending_sizing_mode() will be fullscreen
1347+ // in that case and not maximized), so this check works.
1348+ if tile.window().pending_sizing_mode().is_maximized() && tile.restore_to_floating {
1349+ // Unmaximize and float in one call so it has a chance to notice and request a
1350+ // (0, 0) size, rather than the scrolling column size.
1351+ self.toggle_window_floating(Some(window));
1352+ return;
1353+ }
1354+ }
1355+
1356+ let tile = self
1357+ .scrolling
1358+ .tiles()
1359+ .find(|tile| tile.window().id() == window)
1360+ .unwrap();
1361+ let was_normal = tile.window().pending_sizing_mode().is_normal();
1362+
1363+ self.scrolling.set_maximized(window, maximize);
1364+
1365+ // When going from normal to maximized, remember if we should unmaximize to floating.
1366+ let tile = self
1367+ .scrolling
1368+ .tiles_mut()
1369+ .find(|tile| tile.window().id() == window)
1370+ .unwrap();
1371+ if was_normal && !tile.window().pending_sizing_mode().is_normal() {
1372+ tile.restore_to_floating = restore_to_floating;
1373+ }
1374+ }
1375+
1376+ pub fn toggle_maximized(&mut self, window: &W::Id) {
1377+ let mut current = false;
1378+
1379+ // We have to check the column property in case the window is in the scrolling layout and
1380+ // both maximized and fullscreen. In this case, only the column knows whether it's
1381+ // maximized.
1382+ //
1383+ // In the floating layout, windows cannot be maximized.
1384+ if let Some(col) = self.scrolling.columns().find(|col| col.contains(window)) {
1385+ current = col.is_pending_maximized();
1386+ }
1387+
1388+ self.set_maximized(window, !current);
1389+ }
1390+
13101391 pub fn toggle_window_floating(&mut self, id: Option<&W::Id>) {
13111392 let active_id = self.active_window().map(|win| win.id().clone());
13121393 let target_is_active = id.map_or(true, |id| Some(id) == active_id.as_ref());
src/niri.rsmodified+7 -6
@@ -2339,7 +2339,7 @@ impl Niri {
23392339 let compositor_state = CompositorState::new_v6::<State>(&display_handle);
23402340 let xdg_shell_state = XdgShellState::new_with_capabilities::<State>(
23412341 &display_handle,
2342- [WmCapabilities::Fullscreen],
2342+ [WmCapabilities::Fullscreen, WmCapabilities::Maximize],
23432343 );
23442344 let xdg_decoration_state =
23452345 XdgDecorationState::new_with_filter::<State, _>(&display_handle, |client| {
@@ -5545,11 +5545,12 @@ impl Niri {
55455545 let _span = tracy_client::span!("Niri::screenshot_window");
55465546
55475547 let scale = Scale::from(output.current_scale().fractional_scale());
5548- let alpha = if mapped.is_fullscreen() || mapped.is_ignoring_opacity_window_rule() {
5549- 1.
5550- } else {
5551- mapped.rules().opacity.unwrap_or(1.).clamp(0., 1.)
5552- };
5548+ let alpha =
5549+ if mapped.sizing_mode().is_fullscreen() || mapped.is_ignoring_opacity_window_rule() {
5550+ 1.
5551+ } else {
5552+ mapped.rules().opacity.unwrap_or(1.).clamp(0., 1.)
5553+ };
55535554 // FIXME: pointer.
55545555 let elements = mapped.render(
55555556 renderer,
src/protocols/foreign_toplevel.rsmodified+6 -2
@@ -37,6 +37,8 @@ pub trait ForeignToplevelHandler {
3737 fn close(&mut self, wl_surface: WlSurface);
3838 fn set_fullscreen(&mut self, wl_surface: WlSurface, wl_output: Option<WlOutput>);
3939 fn unset_fullscreen(&mut self, wl_surface: WlSurface);
40+ fn set_maximized(&mut self, wl_surface: WlSurface);
41+ fn unset_maximized(&mut self, wl_surface: WlSurface);
4042 }
4143
4244 struct ToplevelData {
@@ -388,8 +390,10 @@ where
388390 let surface = surface.clone();
389391
390392 match request {
391- zwlr_foreign_toplevel_handle_v1::Request::SetMaximized => (),
392- zwlr_foreign_toplevel_handle_v1::Request::UnsetMaximized => (),
393+ zwlr_foreign_toplevel_handle_v1::Request::SetMaximized => state.set_maximized(surface),
394+ zwlr_foreign_toplevel_handle_v1::Request::UnsetMaximized => {
395+ state.unset_maximized(surface)
396+ }
393397 zwlr_foreign_toplevel_handle_v1::Request::SetMinimized => (),
394398 zwlr_foreign_toplevel_handle_v1::Request::UnsetMinimized => (),
395399 zwlr_foreign_toplevel_handle_v1::Request::Activate { .. } => {
src/tests/client.rsmodified+8 -0
@@ -357,6 +357,14 @@ impl Window {
357357 self.xdg_toplevel.unset_fullscreen();
358358 }
359359
360+ pub fn set_maximized(&self) {
361+ self.xdg_toplevel.set_maximized();
362+ }
363+
364+ pub fn unset_maximized(&self) {
365+ self.xdg_toplevel.unset_maximized();
366+ }
367+
360368 pub fn set_parent(&self, parent: Option<&XdgToplevel>) {
361369 self.xdg_toplevel.set_parent(parent);
362370 }
src/tests/floating.rsmodified+279 -0
@@ -458,6 +458,55 @@ fn interactive_move_unfullscreen_to_floating_restores_size() {
458458 );
459459 }
460460
461+#[test]
462+fn interactive_move_unmaximize_to_floating_restores_size() {
463+ let (mut f, id, surface) = set_up();
464+
465+ f.niri().layout.toggle_window_floating(None);
466+ f.double_roundtrip(id);
467+
468+ // Change size while we're floating and commit.
469+ let window = f.client(id).window(&surface);
470+ window.set_size(200, 200);
471+ window.ack_last_and_commit();
472+ f.double_roundtrip(id);
473+
474+ let _ = f.client(id).window(&surface).recent_configures();
475+
476+ let niri = f.niri();
477+ let mapped = niri.layout.windows().next().unwrap().1;
478+ let window = mapped.window.clone();
479+ niri.layout.set_maximized(&window, true);
480+ f.double_roundtrip(id);
481+
482+ // This should request a maximized size.
483+ assert_snapshot!(
484+ f.client(id).window(&surface).format_recent_configures(),
485+ @"size: 1920 × 1080, bounds: 1888 × 1048, states: [Activated, Maximized]"
486+ );
487+
488+ // Start an interactive move which causes an unmaximize into floating.
489+ let output = f.niri_output(1);
490+ let niri = f.niri();
491+ let mapped = niri.layout.windows().next().unwrap().1;
492+ let window = mapped.window.clone();
493+ niri.layout
494+ .interactive_move_begin(window.clone(), &output, Point::default());
495+ niri.layout.interactive_move_update(
496+ &window,
497+ Point::from((1000., 0.)),
498+ output,
499+ Point::default(),
500+ );
501+ f.double_roundtrip(id);
502+
503+ // This should request the stored floating size (200 × 200).
504+ assert_snapshot!(
505+ f.client(id).window(&surface).format_recent_configures(),
506+ @"size: 200 × 200, bounds: 1920 × 1080, states: [Activated]"
507+ );
508+}
509+
461510 #[test]
462511 fn resize_during_interactive_move_propagates_to_floating() {
463512 let (mut f, id, surface) = set_up();
@@ -791,6 +840,66 @@ fn floating_doesnt_store_fullscreen_size() {
791840 );
792841 }
793842
843+#[test]
844+fn floating_doesnt_store_maximized_size() {
845+ let mut f = Fixture::new();
846+ f.add_output(1, (1920, 1080));
847+ f.add_output(2, (1280, 720));
848+
849+ // Open a window maximized.
850+ let id = f.add_client();
851+ let window = f.client(id).create_window();
852+ let surface = window.surface.clone();
853+ window.set_maximized();
854+ window.commit();
855+ f.roundtrip(id);
856+
857+ let window = f.client(id).window(&surface);
858+ window.attach_new_buffer();
859+ window.set_size(1920, 1080);
860+ window.ack_last_and_commit();
861+ f.double_roundtrip(id);
862+
863+ let _ = f.client(id).window(&surface).recent_configures();
864+
865+ // Make it floating.
866+ f.niri().layout.toggle_window_floating(None);
867+ f.double_roundtrip(id);
868+
869+ // This should request 0 × 0 to unmaximize.
870+ assert_snapshot!(
871+ f.client(id).window(&surface).format_recent_configures(),
872+ @"size: 0 × 0, bounds: 1920 × 1080, states: [Activated]"
873+ );
874+
875+ // Without committing, make it tiling again. We never committed while floating, so there's no
876+ // floating size to remember.
877+ f.niri().layout.toggle_window_floating(None);
878+ f.double_roundtrip(id);
879+
880+ // This should request the tiled size.
881+ assert_snapshot!(
882+ f.client(id).window(&surface).format_recent_configures(),
883+ @"size: 1920 × 1048, bounds: 1888 × 1048, states: [Activated]"
884+ );
885+
886+ // Commit in response.
887+ let window = f.client(id).window(&surface);
888+ window.set_size(100, 100);
889+ window.ack_last_and_commit();
890+ f.roundtrip(id);
891+
892+ // Make the window floating again.
893+ f.niri().layout.toggle_window_floating(None);
894+ f.double_roundtrip(id);
895+
896+ // This shouldn't request any size change, particularly not the maximized size.
897+ assert_snapshot!(
898+ f.client(id).window(&surface).format_recent_configures(),
899+ @"size: 100 × 100, bounds: 1920 × 1080, states: [Activated]"
900+ );
901+}
902+
794903 #[test]
795904 fn floating_respects_non_fixed_min_max_rule() {
796905 let config = r##"
@@ -888,6 +997,33 @@ fn unfullscreen_to_floating_doesnt_send_extra_configure() {
888997 );
889998 }
890999
1000+#[test]
1001+fn unmaximize_to_floating_doesnt_send_extra_configure() {
1002+ let (mut f, id, surface) = set_up();
1003+
1004+ // Make it floating.
1005+ f.niri().layout.toggle_window_floating(None);
1006+ f.roundtrip(id);
1007+
1008+ // Maximize.
1009+ let window = f.client(id).window(&surface);
1010+ window.set_maximized();
1011+ f.double_roundtrip(id);
1012+
1013+ let _ = f.client(id).window(&surface).recent_configures();
1014+
1015+ // Unmaximzie via the window request which requires a configure response.
1016+ let window = f.client(id).window(&surface);
1017+ window.unset_maximized();
1018+ f.double_roundtrip(id);
1019+
1020+ // This should configure only once and not twice.
1021+ assert_snapshot!(
1022+ f.client(id).window(&surface).format_recent_configures(),
1023+ @"size: 936 × 1048, bounds: 1920 × 1080, states: [Activated]"
1024+ );
1025+}
1026+
8911027 #[test]
8921028 fn unfullscreen_to_same_size_floating() {
8931029 let (mut f, id, surface) = set_up();
@@ -926,6 +1062,44 @@ fn unfullscreen_to_same_size_floating() {
9261062 );
9271063 }
9281064
1065+#[test]
1066+fn unmaximize_to_same_size_floating() {
1067+ let (mut f, id, surface) = set_up();
1068+
1069+ // Make it floating.
1070+ f.niri().layout.toggle_window_floating(None);
1071+ f.double_roundtrip(id);
1072+
1073+ // Change size to the same as maximized, make niri remember it.
1074+ let window = f.client(id).window(&surface);
1075+ window.set_size(1920, 1080);
1076+ window.ack_last_and_commit();
1077+ f.double_roundtrip(id);
1078+
1079+ let _ = f.client(id).window(&surface).recent_configures();
1080+
1081+ // Maximize.
1082+ let window = f.client(id).window(&surface);
1083+ window.set_maximized();
1084+ f.double_roundtrip(id);
1085+
1086+ // The maximize configure.
1087+ assert_snapshot!(
1088+ f.client(id).window(&surface).format_recent_configures(),
1089+ @"size: 1920 × 1080, bounds: 1888 × 1048, states: [Activated, Maximized]"
1090+ );
1091+
1092+ // Unmaximize into floating.
1093+ f.niri().layout.toggle_window_floating(None);
1094+ f.double_roundtrip(id);
1095+
1096+ // We should see a configure with the same size and no maximized state.
1097+ assert_snapshot!(
1098+ f.client(id).window(&surface).format_recent_configures(),
1099+ @"size: 1920 × 1080, bounds: 1920 × 1080, states: [Activated]"
1100+ );
1101+}
1102+
9291103 #[test]
9301104 fn unfullscreen_to_same_size_windowed_fullscreen_floating() {
9311105 let (mut f, id, surface) = set_up();
@@ -967,6 +1141,67 @@ fn unfullscreen_to_same_size_windowed_fullscreen_floating() {
9671141 );
9681142 }
9691143
1144+#[test]
1145+fn unmaximize_to_same_size_windowed_fullscreen_floating() {
1146+ let (mut f, id, surface) = set_up();
1147+
1148+ let mapped = f.niri().layout.windows().next().unwrap().1;
1149+ let window_id = mapped.window.clone();
1150+
1151+ // Make it floating.
1152+ f.niri().layout.toggle_window_floating(None);
1153+ f.double_roundtrip(id);
1154+
1155+ // Change size to the same as maximized, make niri remember it.
1156+ let window = f.client(id).window(&surface);
1157+ window.set_size(1920, 1080);
1158+ window.ack_last_and_commit();
1159+ f.double_roundtrip(id);
1160+
1161+ let _ = f.client(id).window(&surface).recent_configures();
1162+
1163+ // Maximize.
1164+ let window = f.client(id).window(&surface);
1165+ window.set_maximized();
1166+ f.double_roundtrip(id);
1167+
1168+ // The maximize configure.
1169+ assert_snapshot!(
1170+ f.client(id).window(&surface).format_recent_configures(),
1171+ @"size: 1920 × 1080, bounds: 1888 × 1048, states: [Activated, Maximized]"
1172+ );
1173+
1174+ // Enable windowed-fullscreen.
1175+ f.niri().layout.toggle_windowed_fullscreen(&window_id);
1176+ f.double_roundtrip(id);
1177+
1178+ // The windowed-fullscreen configure.
1179+ assert_snapshot!(
1180+ f.client(id).window(&surface).format_recent_configures(),
1181+ @"size: 1920 × 1080, bounds: 1888 × 1048, states: [Activated, Fullscreen]"
1182+ );
1183+
1184+ // Go back to windowed-fullscreen floating.
1185+ f.niri().layout.toggle_window_floating(None);
1186+ f.double_roundtrip(id);
1187+
1188+ // Should send configure because the bounds have changed.
1189+ assert_snapshot!(
1190+ f.client(id).window(&surface).format_recent_configures(),
1191+ @"size: 1920 × 1080, bounds: 1920 × 1080, states: [Activated, Fullscreen]"
1192+ );
1193+
1194+ // Disable windowed-fullscreen.
1195+ f.niri().layout.toggle_windowed_fullscreen(&window_id);
1196+ f.double_roundtrip(id);
1197+
1198+ // Should send configure dropping the Fullscreen state.
1199+ assert_snapshot!(
1200+ f.client(id).window(&surface).format_recent_configures(),
1201+ @"size: 1920 × 1080, bounds: 1920 × 1080, states: [Activated]"
1202+ );
1203+}
1204+
9701205 #[test]
9711206 fn unfullscreen_to_same_size_same_bounds_floating() {
9721207 let config = r##"
@@ -1011,6 +1246,50 @@ layout {
10111246 );
10121247 }
10131248
1249+#[test]
1250+fn unmaximize_to_same_size_same_bounds_floating() {
1251+ let config = r##"
1252+layout {
1253+ gaps 0
1254+}
1255+"##;
1256+ let config = Config::parse_mem(config).unwrap();
1257+ let (mut f, id, surface) = set_up_with_config(config);
1258+
1259+ // Make it floating.
1260+ f.niri().layout.toggle_window_floating(None);
1261+ f.double_roundtrip(id);
1262+
1263+ // Change size to the same as fullscreen, make niri remember it.
1264+ let window = f.client(id).window(&surface);
1265+ window.set_size(1920, 1080);
1266+ window.ack_last_and_commit();
1267+ f.double_roundtrip(id);
1268+
1269+ let _ = f.client(id).window(&surface).recent_configures();
1270+
1271+ // Maximize.
1272+ let window = f.client(id).window(&surface);
1273+ window.set_maximized();
1274+ f.double_roundtrip(id);
1275+
1276+ // The maximize configure.
1277+ assert_snapshot!(
1278+ f.client(id).window(&surface).format_recent_configures(),
1279+ @"size: 1920 × 1080, bounds: 1920 × 1080, states: [Activated, Maximized]"
1280+ );
1281+
1282+ // Unmaximize into floating.
1283+ f.niri().layout.toggle_window_floating(None);
1284+ f.double_roundtrip(id);
1285+
1286+ // We should see a configure with the same size and no Maximized state.
1287+ assert_snapshot!(
1288+ f.client(id).window(&surface).format_recent_configures(),
1289+ @"size: 1920 × 1080, bounds: 1920 × 1080, states: [Activated]"
1290+ );
1291+}
1292+
10141293 #[test]
10151294 fn repeated_size_request() {
10161295 let (mut f, id, surface) = set_up();
src/tests/fullscreen.rsmodified+41 -1
@@ -127,7 +127,7 @@ fn windowed_fullscreen_chain() {
127127 let mapped = f.niri().layout.windows().next().unwrap().1;
128128 format!(
129129 "fs {}, wfs {}",
130- mapped.is_fullscreen(),
130+ mapped.sizing_mode().is_fullscreen(),
131131 mapped.is_windowed_fullscreen()
132132 )
133133 };
@@ -255,3 +255,43 @@ fn interactive_move_unfullscreen_to_scrolling_restores_size() {
255255 @"size: 936 × 1048, bounds: 1920 × 1080, states: [Activated]"
256256 );
257257 }
258+
259+#[test]
260+fn interactive_move_unmaximize_to_scrolling_restores_size() {
261+ let (mut f, id, surface) = set_up();
262+
263+ let _ = f.client(id).window(&surface).recent_configures();
264+
265+ let niri = f.niri();
266+ let mapped = niri.layout.windows().next().unwrap().1;
267+ let window = mapped.window.clone();
268+ niri.layout.set_maximized(&window, true);
269+ f.double_roundtrip(id);
270+
271+ // This should request a maximized size.
272+ assert_snapshot!(
273+ f.client(id).window(&surface).format_recent_configures(),
274+ @"size: 1920 × 1080, bounds: 1888 × 1048, states: [Activated, Maximized]"
275+ );
276+
277+ // Start an interactive move which causes an unmaximize.
278+ let output = f.niri_output(1);
279+ let niri = f.niri();
280+ let mapped = niri.layout.windows().next().unwrap().1;
281+ let window = mapped.window.clone();
282+ niri.layout
283+ .interactive_move_begin(window.clone(), &output, Point::default());
284+ niri.layout.interactive_move_update(
285+ &window,
286+ Point::from((1000., 0.)),
287+ output,
288+ Point::default(),
289+ );
290+ f.double_roundtrip(id);
291+
292+ // This should request the tiled size.
293+ assert_snapshot!(
294+ f.client(id).window(&surface).format_recent_configures(),
295+ @"size: 936 × 1048, bounds: 1920 × 1080, states: [Activated]"
296+ );
297+}
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAN-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAN-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAN.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAU-wmB.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAU-wmBU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBN-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBN-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBN-wmB.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBN-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBN.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBU-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBU-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBU-wmB.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBU-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wfsBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wmB.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmF.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAN-wmB.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAN-wmBU.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAN.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAU-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAU-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBN-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBN-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBN-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBN-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBN.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBU-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBU-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBU-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBU-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wfsBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-tmT.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n open-fullscreen false\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAN-wmB.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAN-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAN.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAU-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAU-wmBU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBN-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBN-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBN-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBN-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBN.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBU-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBU-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBU-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBU-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wfsBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsF.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n open-fullscreen false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAN-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAN-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAN.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAU-wmB.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAU-wmBU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBN-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBN-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBN-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBN-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBN.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBU-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBU-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBU-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBU-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wfsBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmF.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAN-wmB.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAN-wmBU.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAN.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAU-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAU-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBN-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBN-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBN-wmB.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBN-wmBU.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBN.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBU-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBU-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBU-wmB.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBU-wmBU.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wfsBU.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wmB.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT-wmBU.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-tmT.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n open-fullscreen true\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAN-wmB.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAN-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAN.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAU-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAU-wmBU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBN-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBN-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBN-wmB.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBN-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBN.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBU-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBU-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBU-wmB.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBU-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wfsBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wmB.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@fsT.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n open-fullscreen true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAN-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAN-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAN.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAU-wmB.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAU-wmBU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBN-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBN-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBN-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBN-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBN.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBU-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBU-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBU-wmB.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBU-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wfsBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wmB.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmF.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n open-maximized-to-edges false\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAN-wmB.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAN-wmBU.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAN.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAU-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAU-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBN-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBN-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBN-wmB.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBN-wmBU.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBN.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBU-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBU-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBU-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBU-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wfsBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@tmT.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "config:\nwindow-rule {\n open-maximized-to-edges true\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAN-wmA.snapadded+18 -0
@@ -0,0 +1,18 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: A\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
16+
17+unmaximize configure:
18+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAN-wmAU.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: AU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
13+
14+unfullscreen configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAN-wmB.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: B\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAN-wmBU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nwant maximized: BU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAN.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AN\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAU-wmA.snapadded+15 -0
@@ -0,0 +1,15 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: A\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
12+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
13+
14+unmaximize configure:
15+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAU-wmAU.snapadded+12 -0
@@ -0,0 +1,12 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: AU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: []
12+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAU-wmB.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: B\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAU-wmBU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nwant maximized: BU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: AU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBN-wmA.snapadded+17 -0
@@ -0,0 +1,17 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: A\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
15+
16+unmaximize configure:
17+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBN-wmAU.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: AU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
12+
13+unfullscreen configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBN-wmB.snapadded+16 -0
@@ -0,0 +1,16 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: B\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 1280 × 720, bounds: 1248 × 688, states: [Activated, Maximized]
14+
15+unmaximize configure:
16+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBN-wmBU.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nwant maximized: BU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBN.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BN\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen, Activated]
11+
12+unfullscreen configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBU-wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: A\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBU-wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: AU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBU-wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: B\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBU-wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nwant maximized: BU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wfsBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want fullscreen: BU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wmA.snapadded+14 -0
@@ -0,0 +1,14 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: A\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
11+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
12+
13+unmaximize configure:
14+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wmAU.snapadded+11 -0
@@ -0,0 +1,11 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: AU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: []
11+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wmB.snapadded+13 -0
@@ -0,0 +1,13 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: B\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized]
8+
9+post-map configures:
10+size: 1280 × 720, bounds: 1248 × 688, states: [Maximized, Activated]
11+
12+unmaximize configure:
13+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/snapshots/niri__tests__window_opening__check_fullscreen_maximize@wmBU.snapadded+10 -0
@@ -0,0 +1,10 @@
1+---
2+source: src/tests/window_opening.rs
3+description: "want maximized: BU\nconfig:\nwindow-rule {\n}"
4+expression: snapshot
5+---
6+initial configure:
7+size: 616 × 688, bounds: 1248 × 688, states: []
8+
9+post-map configures:
10+size: 616 × 688, bounds: 1248 × 688, states: [Activated]
src/tests/window_opening.rsmodified+230 -3
@@ -5,7 +5,7 @@ use niri_config::Config;
55 use rayon::iter::{IntoParallelIterator, ParallelIterator};
66
77 use super::*;
8-use crate::layout::LayoutElement;
8+use crate::layout::LayoutElement as _;
99 use crate::utils::with_toplevel_role;
1010
1111 #[test]
@@ -105,6 +105,28 @@ impl fmt::Display for WantFullscreen {
105105 }
106106 }
107107
108+#[derive(Clone, Copy)]
109+enum WantMaximized {
110+ No,
111+ UnsetBeforeInitial,
112+ BeforeInitial,
113+ UnsetAfterInitial,
114+ AfterInitial,
115+}
116+
117+impl fmt::Display for WantMaximized {
118+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
119+ match self {
120+ WantMaximized::No => write!(f, "U")?,
121+ WantMaximized::UnsetBeforeInitial => write!(f, "BU")?,
122+ WantMaximized::UnsetAfterInitial => write!(f, "AU")?,
123+ WantMaximized::BeforeInitial => write!(f, "B")?,
124+ WantMaximized::AfterInitial => write!(f, "A")?,
125+ }
126+ Ok(())
127+ }
128+}
129+
108130 #[derive(Clone, Copy)]
109131 enum SetParent {
110132 BeforeInitial(&'static str),
@@ -369,7 +391,7 @@ window-rule {{
369391 })
370392 })
371393 .unwrap();
372- let is_fullscreen = mapped.is_fullscreen();
394+ let is_fullscreen = mapped.sizing_mode().is_fullscreen();
373395 let win = mapped.window.clone();
374396 let mon = mon.unwrap().output_name().clone();
375397 let ws = ws.name().cloned().unwrap_or(String::from("unnamed"));
@@ -629,7 +651,7 @@ layout {
629651 // If the window ended up fullscreen, unfullscreen it and output the configure.
630652 let mut post_unfullscreen = String::new();
631653 let mapped = f.niri().layout.windows().next().unwrap().1;
632- let is_fullscreen = mapped.is_fullscreen();
654+ let is_fullscreen = mapped.sizing_mode().is_fullscreen();
633655 let win = mapped.window.clone();
634656 if is_fullscreen {
635657 f.niri().layout.set_fullscreen(&win, false);
@@ -657,3 +679,208 @@ post-map configures:
657679 let _guard = settings.bind_to_scope();
658680 assert_snapshot!(snapshot);
659681 }
682+
683+#[test]
684+fn fullscreen_maximize() {
685+ let open_fullscreen = [None, Some("false"), Some("true")];
686+ let want_fullscreen = [
687+ WantFullscreen::No,
688+ WantFullscreen::UnsetBeforeInitial, // GTK 4
689+ WantFullscreen::BeforeInitial(None),
690+ WantFullscreen::UnsetAfterInitial,
691+ // mpv, osu!
692+ WantFullscreen::AfterInitial(None),
693+ ];
694+ let open_maximized = [None, Some("false"), Some("true")];
695+ let want_maximized = [
696+ WantMaximized::No,
697+ WantMaximized::UnsetBeforeInitial,
698+ WantMaximized::BeforeInitial,
699+ WantMaximized::UnsetAfterInitial,
700+ WantMaximized::AfterInitial,
701+ ];
702+
703+ let mut powerset = Vec::new();
704+ for fs in open_fullscreen {
705+ for wfs in want_fullscreen {
706+ for tm in open_maximized {
707+ for wm in want_maximized {
708+ powerset.push((fs, wfs, tm, wm));
709+ }
710+ }
711+ }
712+ }
713+
714+ powerset.into_par_iter().for_each(|(fs, wfs, tm, wm)| {
715+ check_fullscreen_maximize(fs, wfs, tm, wm);
716+ });
717+}
718+
719+fn check_fullscreen_maximize(
720+ open_fullscreen: Option<&str>,
721+ want_fullscreen: WantFullscreen,
722+ open_maximized: Option<&str>,
723+ want_maximized: WantMaximized,
724+) {
725+ let mut snapshot_desc = Vec::new();
726+ let mut snapshot_suffix = Vec::new();
727+
728+ let mut config = String::from(
729+ r##"
730+window-rule {
731+"##,
732+ );
733+
734+ if let Some(x) = open_fullscreen {
735+ writeln!(config, " open-fullscreen {x}").unwrap();
736+
737+ let x = if x == "true" { "T" } else { "F" };
738+ snapshot_suffix.push(format!("fs{x}"));
739+ }
740+
741+ if let Some(x) = open_maximized {
742+ writeln!(config, " open-maximized-to-edges {x}").unwrap();
743+
744+ let x = if x == "true" { "T" } else { "F" };
745+ snapshot_suffix.push(format!("tm{x}"));
746+ }
747+
748+ config.push('}');
749+
750+ match &want_fullscreen {
751+ WantFullscreen::No => (),
752+ x => {
753+ snapshot_desc.push(format!("want fullscreen: {x}"));
754+ snapshot_suffix.push(format!("wfs{x}"));
755+ }
756+ }
757+
758+ match &want_maximized {
759+ WantMaximized::No => (),
760+ x => {
761+ snapshot_desc.push(format!("want maximized: {x}"));
762+ snapshot_suffix.push(format!("wm{x}"));
763+ }
764+ }
765+
766+ snapshot_desc.push(format!("config:{config}"));
767+
768+ let config = Config::parse_mem(&config).unwrap();
769+
770+ let mut f = Fixture::with_config(config);
771+ f.add_output(1, (1280, 720));
772+ f.add_output(2, (1920, 1080));
773+
774+ let id = f.add_client();
775+
776+ // To get output names.
777+ f.roundtrip(id);
778+
779+ let client = f.client(id);
780+ let window = client.create_window();
781+ let surface = window.surface.clone();
782+
783+ if let WantMaximized::UnsetBeforeInitial = want_maximized {
784+ client.window(&surface).unset_maximized();
785+ } else if let WantMaximized::BeforeInitial = want_maximized {
786+ client.window(&surface).set_maximized();
787+ }
788+
789+ if let WantFullscreen::UnsetBeforeInitial = want_fullscreen {
790+ client.window(&surface).unset_fullscreen();
791+ } else if let WantFullscreen::BeforeInitial(mon) = want_fullscreen {
792+ let output = mon.map(|mon| client.output(&format!("headless-{mon}")));
793+ client.window(&surface).set_fullscreen(output.as_ref());
794+ }
795+
796+ client.window(&surface).commit();
797+ f.roundtrip(id);
798+
799+ let client = f.client(id);
800+ let initial = client.window(&surface).format_recent_configures();
801+
802+ if let WantMaximized::UnsetAfterInitial = want_maximized {
803+ client.window(&surface).unset_maximized();
804+ } else if let WantMaximized::AfterInitial = want_maximized {
805+ client.window(&surface).set_maximized();
806+ }
807+
808+ if let WantFullscreen::UnsetAfterInitial = want_fullscreen {
809+ client.window(&surface).unset_fullscreen();
810+ } else if let WantFullscreen::AfterInitial(mon) = want_fullscreen {
811+ let output = mon.map(|mon| client.output(&format!("headless-{mon}")));
812+ client.window(&surface).set_fullscreen(output.as_ref());
813+ }
814+
815+ let window = client.window(&surface);
816+ window.attach_new_buffer();
817+ let serial = window.configures_received.last().unwrap().0;
818+ window.ack_last_and_commit();
819+ f.double_roundtrip(id);
820+
821+ // Commit to the post-initial configures.
822+ let window = f.client(id).window(&surface);
823+ let new_serial = window.configures_received.last().unwrap().0;
824+ if new_serial != serial {
825+ window.ack_last_and_commit();
826+ f.double_roundtrip(id);
827+ }
828+
829+ let window = f.client(id).window(&surface);
830+ let post_map = window.format_recent_configures();
831+
832+ // If the window ended up fullscreen, unfullscreen it and output the configure.
833+ let mut post_unfullscreen = String::new();
834+ let mapped = f.niri().layout.windows().next().unwrap().1;
835+ let is_fullscreen = mapped.sizing_mode().is_fullscreen();
836+ let win = mapped.window.clone();
837+ if is_fullscreen {
838+ f.niri().layout.set_fullscreen(&win, false);
839+ f.double_roundtrip(id);
840+
841+ let window = f.client(id).window(&surface);
842+ window.ack_last_and_commit();
843+ f.double_roundtrip(id);
844+
845+ let window = f.client(id).window(&surface);
846+ post_unfullscreen = format!(
847+ "\n\nunfullscreen configure:\n{}",
848+ window.format_recent_configures()
849+ );
850+ }
851+
852+ // If the window ended up maximized, unmaximize it and output the configure.
853+ let mut post_unmaximize = String::new();
854+ let mapped = f.niri().layout.windows().next().unwrap().1;
855+ let is_maximized = mapped.sizing_mode().is_maximized();
856+ let win = mapped.window.clone();
857+ if is_maximized {
858+ f.niri().layout.set_maximized(&win, false);
859+ f.double_roundtrip(id);
860+
861+ let window = f.client(id).window(&surface);
862+ window.ack_last_and_commit();
863+ f.double_roundtrip(id);
864+
865+ let window = f.client(id).window(&surface);
866+ post_unmaximize = format!(
867+ "\n\nunmaximize configure:\n{}",
868+ window.format_recent_configures()
869+ );
870+ }
871+
872+ let snapshot = format!(
873+ "\
874+initial configure:
875+{initial}
876+
877+post-map configures:
878+{post_map}{post_unfullscreen}{post_unmaximize}",
879+ );
880+
881+ let mut settings = insta::Settings::clone_current();
882+ settings.set_snapshot_suffix(snapshot_suffix.join("-"));
883+ settings.set_description(snapshot_desc.join("\n"));
884+ let _guard = settings.bind_to_scope();
885+ assert_snapshot!(snapshot);
886+}
src/window/mapped.rsmodified+134 -20
@@ -25,7 +25,7 @@ use super::{ResolvedWindowRules, WindowRef};
2525 use crate::handlers::KdeDecorationsModeState;
2626 use crate::layout::{
2727 ConfigureIntent, InteractiveResizeData, LayoutElement, LayoutElementRenderElement,
28- LayoutElementRenderSnapshot,
28+ LayoutElementRenderSnapshot, SizingMode,
2929 };
3030 use crate::niri_render_elements;
3131 use crate::render_helpers::border::BorderRenderElement;
@@ -164,6 +164,25 @@ pub struct Mapped {
164164 /// These have been "sent" to the window in form of configures, but the window hadn't committed
165165 /// in response yet.
166166 uncommitted_windowed_fullscreen: Vec<(Serial, bool)>,
167+
168+ /// Whether this window is maximized.
169+ ///
170+ /// We have to track this ourselves in addition to the Maximized toplevel state in order to
171+ /// support windowed fullscreen, since in windowed fullscreen the toplevel state is always
172+ /// Fullscreen. So we need this variable to be able to report accurate sizing mode and pending
173+ /// sizing mode.
174+ is_maximized: bool,
175+
176+ /// Whether this window is pending to be maximized.
177+ ///
178+ /// We have to track this ourselves due to windowed fullscreen.
179+ is_pending_maximized: bool,
180+
181+ /// Pending maximized updates.
182+ ///
183+ /// These have been "sent" to the window in form of configures, but the window hadn't committed
184+ /// in response yet.
185+ uncommitted_maximized: Vec<(Serial, bool)>,
167186 }
168187
169188 niri_render_elements! {
@@ -229,7 +248,7 @@ impl Mapped {
229248 let surface = window.wl_surface().expect("no X11 support");
230249 let credentials = get_credentials_for_surface(&surface);
231250
232- Self {
251+ let mut rv = Self {
233252 window,
234253 id: MappedId::next(),
235254 credentials,
@@ -257,7 +276,15 @@ impl Mapped {
257276 is_windowed_fullscreen: false,
258277 is_pending_windowed_fullscreen: false,
259278 uncommitted_windowed_fullscreen: Vec::new(),
260- }
279+ is_maximized: false,
280+ is_pending_maximized: false,
281+ uncommitted_maximized: Vec::new(),
282+ };
283+
284+ rv.is_maximized = rv.sizing_mode().is_maximized();
285+ rv.is_pending_maximized = rv.pending_sizing_mode().is_maximized();
286+
287+ rv
261288 }
262289
263290 pub fn toplevel(&self) -> &ToplevelSurface {
@@ -671,12 +698,12 @@ impl LayoutElement for Mapped {
671698 fn request_size(
672699 &mut self,
673700 size: Size<i32, Logical>,
674- is_fullscreen: bool,
701+ mode: SizingMode,
675702 animate: bool,
676703 transaction: Option<Transaction>,
677704 ) {
678705 // Going into real fullscreen resets windowed fullscreen.
679- if is_fullscreen {
706+ if mode == SizingMode::Fullscreen {
680707 self.is_pending_windowed_fullscreen = false;
681708
682709 if self.is_windowed_fullscreen {
@@ -686,14 +713,27 @@ impl LayoutElement for Mapped {
686713 }
687714 }
688715
716+ self.is_pending_maximized = mode == SizingMode::Maximized;
717+ if self.is_maximized != self.is_pending_maximized {
718+ // Make sure we receive a commit to update self.is_maximized later on.
719+ self.needs_configure = true;
720+ }
721+
689722 let changed = self.toplevel().with_pending_state(|state| {
690723 let changed = state.size != Some(size);
691724 state.size = Some(size);
692- if is_fullscreen || self.is_pending_windowed_fullscreen {
725+
726+ if mode.is_fullscreen() || self.is_pending_windowed_fullscreen {
693727 state.states.set(xdg_toplevel::State::Fullscreen);
728+ state.states.unset(xdg_toplevel::State::Maximized);
729+ } else if mode.is_maximized() {
730+ state.states.unset(xdg_toplevel::State::Fullscreen);
731+ state.states.set(xdg_toplevel::State::Maximized);
694732 } else {
695733 state.states.unset(xdg_toplevel::State::Fullscreen);
734+ state.states.unset(xdg_toplevel::State::Maximized);
696735 }
736+
697737 changed
698738 });
699739
@@ -718,6 +758,12 @@ impl LayoutElement for Mapped {
718758 // longer participate in any transactions with other windows.
719759 self.transaction_for_next_configure = None;
720760
761+ self.is_pending_maximized = false;
762+ if self.is_maximized != self.is_pending_maximized {
763+ // Make sure we receive a commit to update self.is_maximized later on.
764+ self.needs_configure = true;
765+ }
766+
721767 // If our last requested size already matches the size we want to request-once, clear the
722768 // size request right away. However, we must also check if we're unfullscreening, because
723769 // in that case the window itself will restore its previous size upon receiving a (0, 0)
@@ -729,7 +775,9 @@ impl LayoutElement for Mapped {
729775 let same_size = state.size.unwrap_or_default() == size;
730776 let has_fullscreen = state.states.contains(xdg_toplevel::State::Fullscreen);
731777 let same_fullscreen = has_fullscreen == self.is_pending_windowed_fullscreen;
732- (same_size && same_fullscreen).then_some(*serial)
778+ let has_maximized = state.states.contains(xdg_toplevel::State::Maximized);
779+ let same_maximized = !has_maximized;
780+ (same_size && same_fullscreen && same_maximized).then_some(*serial)
733781 });
734782
735783 if let Some(serial) = already_sent {
@@ -766,6 +814,7 @@ impl LayoutElement for Mapped {
766814 if !self.is_pending_windowed_fullscreen {
767815 state.states.unset(xdg_toplevel::State::Fullscreen);
768816 }
817+ state.states.unset(xdg_toplevel::State::Maximized);
769818 changed
770819 });
771820
@@ -1021,6 +1070,18 @@ impl LayoutElement for Mapped {
10211070 self.uncommitted_windowed_fullscreen
10221071 .push((serial, self.is_pending_windowed_fullscreen));
10231072 }
1073+
1074+ // If is_pending_maximized changed compared to the last value that we "sent" to the
1075+ // window, store the configure serial.
1076+ let last_sent_maximized = self
1077+ .uncommitted_maximized
1078+ .last()
1079+ .map(|(_, value)| *value)
1080+ .unwrap_or(self.is_maximized);
1081+ if last_sent_maximized != self.is_pending_maximized {
1082+ self.uncommitted_maximized
1083+ .push((serial, self.is_pending_maximized));
1084+ }
10241085 } else {
10251086 self.interactive_resize = match self.interactive_resize.take() {
10261087 // We probably started and stopped resizing in the same loop cycle without anything
@@ -1034,23 +1095,51 @@ impl LayoutElement for Mapped {
10341095 self.transaction_for_next_configure = None;
10351096 }
10361097
1037- fn is_fullscreen(&self) -> bool {
1098+ fn sizing_mode(&self) -> SizingMode {
10381099 if self.is_windowed_fullscreen {
1039- return false;
1100+ return if self.is_maximized {
1101+ SizingMode::Maximized
1102+ } else {
1103+ SizingMode::Normal
1104+ };
10401105 }
10411106
1042- self.toplevel().with_committed_state(|current| {
1043- current.is_some_and(|s| s.states.contains(xdg_toplevel::State::Fullscreen))
1107+ self.toplevel().with_committed_state(|state| {
1108+ // This must always be Some() for mapped windows. However, this function is called on
1109+ // the code path when removing a just-unmapped window in the commit handler, at which
1110+ // point state is already None.
1111+ let Some(state) = state else {
1112+ return SizingMode::Normal;
1113+ };
1114+
1115+ if state.states.contains(xdg_toplevel::State::Fullscreen) {
1116+ SizingMode::Fullscreen
1117+ } else if state.states.contains(xdg_toplevel::State::Maximized) {
1118+ SizingMode::Maximized
1119+ } else {
1120+ SizingMode::Normal
1121+ }
10441122 })
10451123 }
10461124
1047- fn is_pending_fullscreen(&self) -> bool {
1125+ fn pending_sizing_mode(&self) -> SizingMode {
10481126 if self.is_pending_windowed_fullscreen {
1049- return false;
1127+ return if self.is_pending_maximized {
1128+ SizingMode::Maximized
1129+ } else {
1130+ SizingMode::Normal
1131+ };
10501132 }
10511133
1052- self.toplevel()
1053- .with_pending_state(|state| state.states.contains(xdg_toplevel::State::Fullscreen))
1134+ self.toplevel().with_pending_state(|state| {
1135+ if state.states.contains(xdg_toplevel::State::Fullscreen) {
1136+ SizingMode::Fullscreen
1137+ } else if state.states.contains(xdg_toplevel::State::Maximized) {
1138+ SizingMode::Maximized
1139+ } else {
1140+ SizingMode::Normal
1141+ }
1142+ })
10541143 }
10551144
10561145 fn is_ignoring_opacity_window_rule(&self) -> bool {
@@ -1062,8 +1151,8 @@ impl LayoutElement for Mapped {
10621151 }
10631152
10641153 fn expected_size(&self) -> Option<Size<i32, Logical>> {
1065- // We can only use current size if it's not fullscreen.
1066- let current_size = (!self.is_fullscreen()).then(|| self.window.geometry().size);
1154+ // We can only use current size if it's not maximized or fullscreen.
1155+ let current_size = (self.sizing_mode().is_normal()).then(|| self.window.geometry().size);
10671156
10681157 // Check if we should be using the current window size.
10691158 //
@@ -1100,6 +1189,9 @@ impl LayoutElement for Mapped {
11001189 server_pending
11011190 .states
11021191 .contains(xdg_toplevel::State::Fullscreen),
1192+ server_pending
1193+ .states
1194+ .contains(xdg_toplevel::State::Maximized),
11031195 ));
11041196 }
11051197
@@ -1113,13 +1205,20 @@ impl LayoutElement for Mapped {
11131205 Some((
11141206 state.size.unwrap_or_default(),
11151207 state.states.contains(xdg_toplevel::State::Fullscreen),
1208+ state.states.contains(xdg_toplevel::State::Maximized),
11161209 ))
11171210 })
11181211 });
11191212
1120- if let Some((mut size, fullscreen)) = pending {
1121- // If the pending change is fullscreen, we can't use that size.
1122- if fullscreen && !self.is_pending_windowed_fullscreen {
1213+ if let Some((mut size, fullscreen, maximized)) = pending {
1214+ // If the pending change is maximized or fullscreen, we can't use that size.
1215+ //
1216+ // Pending windowed fullscreen is good (means not real fullscreen), unless it's also
1217+ // pending maximized (means maximized windowed fullscreen, so maximized size, bad).
1218+ if maximized
1219+ || (fullscreen
1220+ && (!self.is_pending_windowed_fullscreen || self.is_pending_maximized))
1221+ {
11231222 return None;
11241223 }
11251224
@@ -1157,8 +1256,13 @@ impl LayoutElement for Mapped {
11571256 self.toplevel().with_pending_state(|state| {
11581257 if value {
11591258 state.states.set(xdg_toplevel::State::Fullscreen);
1259+ state.states.unset(xdg_toplevel::State::Maximized);
11601260 } else {
11611261 state.states.unset(xdg_toplevel::State::Fullscreen);
1262+
1263+ if self.is_pending_maximized {
1264+ state.states.set(xdg_toplevel::State::Maximized);
1265+ }
11621266 }
11631267 });
11641268
@@ -1237,5 +1341,15 @@ impl LayoutElement for Mapped {
12371341 true
12381342 }
12391343 });
1344+
1345+ // "Commit" our "acked" pending maximized state.
1346+ self.uncommitted_maximized.retain_mut(|(serial, value)| {
1347+ if commit_serial.is_no_older_than(serial) {
1348+ self.is_maximized = *value;
1349+ false
1350+ } else {
1351+ true
1352+ }
1353+ });
12401354 }
12411355 }
src/window/mod.rsmodified+8 -0
@@ -61,6 +61,9 @@ pub struct ResolvedWindowRules {
6161 /// Whether the window should open full-width.
6262 pub open_maximized: Option<bool>,
6363
64+ /// Whether the window should open maximized to edges (true maximized).
65+ pub open_maximized_to_edges: Option<bool>,
66+
6467 /// Whether the window should open fullscreen.
6568 pub open_fullscreen: Option<bool>,
6669
@@ -180,6 +183,7 @@ impl ResolvedWindowRules {
180183 open_on_output: None,
181184 open_on_workspace: None,
182185 open_maximized: None,
186+ open_maximized_to_edges: None,
183187 open_fullscreen: None,
184188 open_floating: None,
185189 open_focused: None,
@@ -300,6 +304,10 @@ impl ResolvedWindowRules {
300304 resolved.open_maximized = Some(x);
301305 }
302306
307+ if let Some(x) = rule.open_maximized_to_edges {
308+ resolved.open_maximized_to_edges = Some(x);
309+ }
310+
303311 if let Some(x) = rule.open_fullscreen {
304312 resolved.open_fullscreen = Some(x);
305313 }
src/window/unmapped.rsmodified+11 -0
@@ -21,6 +21,9 @@ pub enum InitialConfigureState {
2121 NotConfigured {
2222 /// Whether the window requested to be fullscreened, and the requested output, if any.
2323 wants_fullscreen: Option<Option<Output>>,
24+
25+ /// Whether the window requested to be maximized.
26+ wants_maximized: bool,
2427 },
2528 /// The window has been configured.
2629 Configured {
@@ -64,6 +67,13 @@ pub enum InitialConfigureState {
6467
6568 /// Workspace to open this window on.
6669 workspace_name: Option<String>,
70+
71+ /// Whether the window should be maximized.
72+ ///
73+ /// This corresponds to the window having the Maximized toplevel state. However, if the
74+ /// window is also pending fullscreen, then it has the Fullscreen toplevel state, so we
75+ /// need to store pending maximized elsewhere, hence this field.
76+ is_pending_maximized: bool,
6777 },
6878 }
6979
@@ -74,6 +84,7 @@ impl Unmapped {
7484 window,
7585 state: InitialConfigureState::NotConfigured {
7686 wants_fullscreen: None,
87+ wants_maximized: false,
7788 },
7889 activation_token_data: None,
7990 }