shell: Populate focus_stack when unstacking
This commit is contained in:
parent
dc882ffc36
commit
b9a323c9ff
4 changed files with 61 additions and 18 deletions
|
|
@ -18,7 +18,7 @@ use super::{Item, ResizeEdge};
|
|||
fn toggle_stacking(state: &mut State, mapped: &CosmicMapped) {
|
||||
let mut shell = state.common.shell.write().unwrap();
|
||||
let seat = shell.seats.last_active().clone();
|
||||
if let Some(new_focus) = shell.toggle_stacking(mapped) {
|
||||
if let Some(new_focus) = shell.toggle_stacking(&seat, mapped) {
|
||||
std::mem::drop(shell);
|
||||
Shell::set_focus(state, Some(&new_focus), &seat, None);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue