mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
layout: Use actual working area on workspace creation
Fixes https://github.com/YaLTeR/niri/issues/19
This commit is contained in:
+2
-1
@@ -1407,10 +1407,11 @@ impl Monitor<Window> {
|
||||
|
||||
impl<W: LayoutElement> Workspace<W> {
|
||||
fn new(output: Output) -> Self {
|
||||
let working_area = layer_map_for_output(&output).non_exclusive_zone();
|
||||
Self {
|
||||
original_output: OutputId::new(&output),
|
||||
view_size: output_size(&output),
|
||||
working_area: Rectangle::from_loc_and_size((0, 0), output_size(&output)),
|
||||
working_area,
|
||||
output: Some(output),
|
||||
columns: vec![],
|
||||
active_column_idx: 0,
|
||||
|
||||
Reference in New Issue
Block a user