From 6f5a14e95c32997997274d819eaf6001c89d28e1 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 9 Jul 2025 14:48:59 -0700 Subject: [PATCH] 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. --- src/shell/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 15b5555f..c4397dca 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -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)), + )) } } }