diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-27 17:38:57 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-27 17:39:42 +0400 |
| commit | cf123ddcd029e3508e4b3efdddac62f605bd2610 (patch) | |
| tree | b459d7758d5a45996bc9ebbea79d7d924467c98c /src | |
| parent | dbcc1182ef924329d09ee3bc3a15afa08e0e682f (diff) | |
| download | niri-cf123ddcd029e3508e4b3efdddac62f605bd2610.tar.gz niri-cf123ddcd029e3508e4b3efdddac62f605bd2610.tar.bz2 niri-cf123ddcd029e3508e4b3efdddac62f605bd2610.zip | |
layout: Use actual working area on workspace creation
Fixes https://github.com/YaLTeR/niri/issues/19
Diffstat (limited to 'src')
| -rw-r--r-- | src/layout.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<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, |
