Skip to content

Commit 6f5a14e

Browse files
ids1024Drakulix
authored andcommitted
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.
1 parent d653980 commit 6f5a14e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shell/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,10 @@ impl Shell {
15371537
for set in self.workspaces.sets.values_mut() {
15381538
set.activate(idx, workspace_delta, workspace_state)?;
15391539
}
1540-
Ok(None)
1540+
let output_geo = output.geometry();
1541+
Ok(Some(
1542+
output_geo.loc + Point::from((output_geo.size.w / 2, output_geo.size.h / 2)),
1543+
))
15411544
}
15421545
}
15431546
}

0 commit comments

Comments
 (0)