zoom: Handle multiple outputs

This commit is contained in:
Victoria Brekenfeld 2025-01-24 18:07:33 +01:00 committed by Victoria Brekenfeld
parent 61d44b3a9d
commit 531a1c951f
4 changed files with 259 additions and 32 deletions

View file

@ -595,7 +595,7 @@ where
} else {
ElementFilter::All
};
let zoom_level = shell.read().unwrap().zoom_level();
let zoom_level = shell.read().unwrap().zoom_level(Some(&output));
#[allow(unused_mut)]
let workspace_elements = workspace_elements(
@ -1013,7 +1013,7 @@ where
} else {
ElementFilter::All
};
let zoom_level = shell.read().unwrap().zoom_level();
let zoom_level = shell.read().unwrap().zoom_level(Some(&output));
let result = render_workspace(
gpu,