mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
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:
@@ -100,6 +100,7 @@ impl CompositorHandler for State {
|
||||
if let InitialConfigureState::Configured {
|
||||
rules,
|
||||
width,
|
||||
floating_width: _,
|
||||
is_full_width,
|
||||
output,
|
||||
workspace_name,
|
||||
|
||||
@@ -494,6 +494,7 @@ impl XdgShellHandler for State {
|
||||
InitialConfigureState::Configured {
|
||||
rules,
|
||||
width,
|
||||
floating_width,
|
||||
is_full_width,
|
||||
output,
|
||||
workspace_name,
|
||||
@@ -548,12 +549,14 @@ impl XdgShellHandler for State {
|
||||
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.))
|
||||
} else {
|
||||
*width
|
||||
};
|
||||
let is_floating = rules.compute_open_floating(&toplevel);
|
||||
ws.configure_new_window(
|
||||
&unmapped.window,
|
||||
configure_width,
|
||||
@@ -836,6 +839,7 @@ impl State {
|
||||
let mon = mon.map(|(mon, _)| mon);
|
||||
|
||||
let mut width = None;
|
||||
let mut floating_width = None;
|
||||
let is_full_width = rules.open_maximized.unwrap_or(false);
|
||||
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.))
|
||||
} else {
|
||||
width
|
||||
@@ -884,6 +891,7 @@ impl State {
|
||||
*state = InitialConfigureState::Configured {
|
||||
rules,
|
||||
width,
|
||||
floating_width,
|
||||
is_full_width,
|
||||
output,
|
||||
workspace_name: ws.and_then(|w| w.name().cloned()),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
use std::cmp::max;
|
||||
use std::iter::zip;
|
||||
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)]
|
||||
pub fn view_size(&self) -> Size<f64, Logical> {
|
||||
self.view_size
|
||||
|
||||
@@ -723,7 +723,7 @@ impl<W: LayoutElement> Workspace<W> {
|
||||
(min_size, max_size): (Size<i32, Logical>, Size<i32, Logical>),
|
||||
) -> Size<i32, Logical> {
|
||||
let mut size = if is_floating {
|
||||
Size::from((0, 0))
|
||||
self.floating.new_window_size(width, rules)
|
||||
} else {
|
||||
self.scrolling.new_window_size(width, rules)
|
||||
};
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ initial configure:
|
||||
size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen]
|
||||
|
||||
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]
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ initial configure:
|
||||
size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen]
|
||||
|
||||
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]
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ initial configure:
|
||||
size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen]
|
||||
|
||||
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]
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ initial configure:
|
||||
size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen]
|
||||
|
||||
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]
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ initial configure:
|
||||
size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen]
|
||||
|
||||
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]
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ initial configure:
|
||||
size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen]
|
||||
|
||||
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]
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ initial configure:
|
||||
size: 1280 × 720, bounds: 1272 × 712, states: [Fullscreen]
|
||||
|
||||
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]
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ initial configure:
|
||||
size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen]
|
||||
|
||||
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]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1000 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1000 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1240 × 680, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1272 × 712, states: []
|
||||
size: 312 × 0, bounds: 1272 × 712, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1272 × 712, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen]
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ expression: snapshot
|
||||
snapshot_kind: text
|
||||
---
|
||||
initial configure:
|
||||
size: 0 × 0, bounds: 1280 × 720, states: []
|
||||
size: 320 × 0, bounds: 1280 × 720, states: []
|
||||
|
||||
post-map configures:
|
||||
size: 1 × 1, bounds: 1280 × 720, states: [Activated]
|
||||
|
||||
@@ -30,11 +30,16 @@ pub enum InitialConfigureState {
|
||||
/// affect anything before that.
|
||||
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.
|
||||
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.
|
||||
is_full_width: bool,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user