shell: Make activate return Some on Global workspace mode

This seems to have been returning `Ok(None)` erroneously. Fixing this
corrects output changing keybindings on global workspace mode.
This commit is contained in:
Ian Douglas Scott 2025-07-09 14:48:59 -07:00 committed by Victoria Brekenfeld
parent d6539804e9
commit 6f5a14e95c

View file

@ -1537,7 +1537,10 @@ impl Shell {
for set in self.workspaces.sets.values_mut() {
set.activate(idx, workspace_delta, workspace_state)?;
}
Ok(None)
let output_geo = output.geometry();
Ok(Some(
output_geo.loc + Point::from((output_geo.size.w / 2, output_geo.size.h / 2)),
))
}
}
}