floating: Support default-column-width in most cases

open-fullscreen + open-floating default width is still not supported in this
commit.
This commit is contained in:
Ivan Molodetskikh
2024-12-27 09:58:22 +03:00
parent 99c0fabee6
commit db6447ed79
85 changed files with 163 additions and 118 deletions
+1
View File
@@ -100,6 +100,7 @@ impl CompositorHandler for State {
if let InitialConfigureState::Configured { if let InitialConfigureState::Configured {
rules, rules,
width, width,
floating_width: _,
is_full_width, is_full_width,
output, output,
workspace_name, workspace_name,
+12 -4
View File
@@ -494,6 +494,7 @@ impl XdgShellHandler for State {
InitialConfigureState::Configured { InitialConfigureState::Configured {
rules, rules,
width, width,
floating_width,
is_full_width, is_full_width,
output, output,
workspace_name, workspace_name,
@@ -548,12 +549,14 @@ impl XdgShellHandler for State {
state.states.unset(xdg_toplevel::State::Fullscreen); state.states.unset(xdg_toplevel::State::Fullscreen);
}); });
let configure_width = if *is_full_width { let is_floating = rules.compute_open_floating(&toplevel);
let configure_width = if is_floating {
*floating_width
} else if *is_full_width {
Some(ColumnWidth::Proportion(1.)) Some(ColumnWidth::Proportion(1.))
} else { } else {
*width *width
}; };
let is_floating = rules.compute_open_floating(&toplevel);
ws.configure_new_window( ws.configure_new_window(
&unmapped.window, &unmapped.window,
configure_width, configure_width,
@@ -836,6 +839,7 @@ impl State {
let mon = mon.map(|(mon, _)| mon); let mon = mon.map(|(mon, _)| mon);
let mut width = None; let mut width = None;
let mut floating_width = None;
let is_full_width = rules.open_maximized.unwrap_or(false); let is_full_width = rules.open_maximized.unwrap_or(false);
let is_floating = rules.compute_open_floating(toplevel); let is_floating = rules.compute_open_floating(toplevel);
@@ -859,9 +863,12 @@ impl State {
}); });
} }
width = ws.resolve_default_width(rules.default_width, is_floating); width = ws.resolve_default_width(rules.default_width, false);
floating_width = ws.resolve_default_width(rules.default_width, true);
let configure_width = if is_full_width { let configure_width = if is_floating {
floating_width
} else if is_full_width {
Some(ColumnWidth::Proportion(1.)) Some(ColumnWidth::Proportion(1.))
} else { } else {
width width
@@ -884,6 +891,7 @@ impl State {
*state = InitialConfigureState::Configured { *state = InitialConfigureState::Configured {
rules, rules,
width, width,
floating_width,
is_full_width, is_full_width,
output, output,
workspace_name: ws.and_then(|w| w.name().cloned()), workspace_name: ws.and_then(|w| w.name().cloned()),
+31
View File
@@ -1,3 +1,4 @@
use std::cmp::max;
use std::iter::zip; use std::iter::zip;
use std::rc::Rc; use std::rc::Rc;
@@ -1097,6 +1098,36 @@ impl<W: LayoutElement> FloatingSpace<W> {
} }
} }
pub fn resolve_width(&self, width: ColumnWidth) -> ResolvedSize {
width.resolve_no_gaps(&self.options, self.working_area.size.w)
}
pub fn new_window_size(
&self,
width: Option<ColumnWidth>,
rules: &ResolvedWindowRules,
) -> Size<i32, Logical> {
let border = rules.border.resolve_against(self.options.border);
let width = if let Some(width) = width {
let width = match self.resolve_width(width) {
ResolvedSize::Tile(mut size) => {
if !border.off {
size -= border.width.0 * 2.;
}
size
}
ResolvedSize::Window(size) => size,
};
max(1, width.floor() as i32)
} else {
0
};
Size::from((width, 0))
}
#[cfg(test)] #[cfg(test)]
pub fn view_size(&self) -> Size<f64, Logical> { pub fn view_size(&self) -> Size<f64, Logical> {
self.view_size self.view_size
+1 -1
View File
@@ -723,7 +723,7 @@ impl<W: LayoutElement> Workspace<W> {
(min_size, max_size): (Size<i32, Logical>, Size<i32, Logical>), (min_size, max_size): (Size<i32, Logical>, Size<i32, Logical>),
) -> Size<i32, Logical> { ) -> Size<i32, Logical> {
let mut size = if is_floating { let mut size = if is_floating {
Size::from((0, 0)) self.floating.new_window_size(width, rules)
} else { } else {
self.scrolling.new_window_size(width, rules) self.scrolling.new_window_size(width, rules)
}; };
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen] size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1000 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1000 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen] size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 312 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 320 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen] size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1000 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1000 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen] size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 312 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 320 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -8,5 +8,5 @@ initial configure:
size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen] size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen]
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
size: 0 × 0, bounds: 1272 × 712, states: [Activated] size: 0 × 0, bounds: 1272 × 712, states: [Activated]
@@ -8,5 +8,5 @@ initial configure:
size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen]
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
size: 0 × 0, bounds: 1280 × 720, states: [Activated] size: 0 × 0, bounds: 1280 × 720, states: [Activated]
@@ -8,5 +8,5 @@ initial configure:
size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen] size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen]
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
size: 0 × 0, bounds: 1272 × 712, states: [Activated] size: 0 × 0, bounds: 1272 × 712, states: [Activated]
@@ -8,5 +8,5 @@ initial configure:
size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen]
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
size: 0 × 0, bounds: 1280 × 720, states: [Activated] size: 0 × 0, bounds: 1280 × 720, states: [Activated]
@@ -8,5 +8,5 @@ initial configure:
size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen] size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen]
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
size: 0 × 0, bounds: 1272 × 712, states: [Activated] size: 0 × 0, bounds: 1272 × 712, states: [Activated]
@@ -8,5 +8,5 @@ initial configure:
size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen]
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
size: 0 × 0, bounds: 1280 × 720, states: [Activated] size: 0 × 0, bounds: 1280 × 720, states: [Activated]
@@ -8,5 +8,5 @@ initial configure:
size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen] size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen]
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
size: 0 × 0, bounds: 1272 × 712, states: [Activated] size: 0 × 0, bounds: 1272 × 712, states: [Activated]
@@ -8,5 +8,5 @@ initial configure:
size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen]
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
size: 0 × 0, bounds: 1280 × 720, states: [Activated] size: 0 × 0, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen] size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1000 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1000 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen] size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 312 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 320 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen] size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1000 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 1000 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1000 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 1000 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen] size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 312 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1272 × 712, states: [] size: 312 × 0, bounds: 1272 × 712, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1272 × 712, states: [Activated] size: 1 × 1, bounds: 1272 × 712, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
@@ -5,8 +5,8 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 320 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
@@ -5,7 +5,7 @@ expression: snapshot
snapshot_kind: text snapshot_kind: text
--- ---
initial configure: initial configure:
size: 0 × 0, bounds: 1280 × 720, states: [] size: 320 × 0, bounds: 1280 × 720, states: []
post-map configures: post-map configures:
size: 1 × 1, bounds: 1280 × 720, states: [Activated] size: 1 × 1, bounds: 1280 × 720, states: [Activated]
+6 -1
View File
@@ -30,11 +30,16 @@ pub enum InitialConfigureState {
/// affect anything before that. /// affect anything before that.
rules: ResolvedWindowRules, rules: ResolvedWindowRules,
/// Resolved default width for this window. /// Resolved scrolling default width for this window.
/// ///
/// `None` means that the window will pick its own width. /// `None` means that the window will pick its own width.
width: Option<ColumnWidth>, width: Option<ColumnWidth>,
/// Resolved floating default width for this window.
///
/// `None` means that the window will pick its own width.
floating_width: Option<ColumnWidth>,
/// Whether the window should open full-width. /// Whether the window should open full-width.
is_full_width: bool, is_full_width: bool,