workspace: Add explicit toogle_floating_window_focused

`toggle_floating_window` -> `toggle_floating_window_focused`
and added `toggle_floating_window` to deal with explicitly provided
`CosmicMapped`.
This commit is contained in:
Victoria Brekenfeld 2023-12-07 19:34:03 +00:00 committed by Victoria Brekenfeld
parent 1a399b0d04
commit 677f686afd
2 changed files with 20 additions and 12 deletions

View file

@ -1832,7 +1832,7 @@ impl State {
Action::ToggleWindowFloating => {
let output = seat.active_output();
let workspace = self.common.shell.active_space_mut(&output);
workspace.toggle_floating_window(seat);
workspace.toggle_floating_window_focused(seat);
}
Action::Spawn(command) => {
let (token, data) = self