mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +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> {
|
impl<W: LayoutElement> Workspace<W> {
|
||||||
fn new(output: Output) -> Self {
|
fn new(output: Output) -> Self {
|
||||||
|
let working_area = layer_map_for_output(&output).non_exclusive_zone();
|
||||||
Self {
|
Self {
|
||||||
original_output: OutputId::new(&output),
|
original_output: OutputId::new(&output),
|
||||||
view_size: output_size(&output),
|
view_size: output_size(&output),
|
||||||
working_area: Rectangle::from_loc_and_size((0, 0), output_size(&output)),
|
working_area,
|
||||||
output: Some(output),
|
output: Some(output),
|
||||||
columns: vec![],
|
columns: vec![],
|
||||||
active_column_idx: 0,
|
active_column_idx: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user