shell: Recalculate tiling-layer when layer-shell updates
This commit is contained in:
parent
a9489b50c5
commit
1868f6b0f7
5 changed files with 30 additions and 10 deletions
|
|
@ -1394,8 +1394,13 @@ impl Shell {
|
|||
})
|
||||
};
|
||||
|
||||
let mut map = layer_map_for_output(&output);
|
||||
map.map_layer(&layer_surface).unwrap();
|
||||
{
|
||||
let mut map = layer_map_for_output(&output);
|
||||
map.map_layer(&layer_surface).unwrap();
|
||||
}
|
||||
for workspace in state.common.shell.workspaces.spaces_mut() {
|
||||
workspace.tiling_layer.recalculate(&output);
|
||||
}
|
||||
|
||||
if wants_focus {
|
||||
Shell::set_focus(state, Some(&layer_surface.into()), &seat, None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue