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

@ -518,6 +518,11 @@ impl State {
let mut shell = self.common.shell.write().unwrap();
shell.update_pointer_position(position.to_local(&output), &output);
shell.update_focal_point(
&seat,
original_position,
self.common.config.cosmic_conf.accessibility_zoom.view_moves,
);
if output != current_output {
for session in cursor_sessions_for_output(&*shell, &current_output) {