From cf123ddcd029e3508e4b3efdddac62f605bd2610 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 27 Sep 2023 17:38:57 +0400 Subject: layout: Use actual working area on workspace creation Fixes https://github.com/YaLTeR/niri/issues/19 --- src/layout.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/layout.rs') diff --git a/src/layout.rs b/src/layout.rs index 8f8fbb87..7f8be762 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -1407,10 +1407,11 @@ impl Monitor { impl Workspace { 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, -- cgit