shell: Recalculate tiling-layer when layer-shell updates

This commit is contained in:
Victoria Brekenfeld 2023-07-13 17:40:49 +02:00
parent a9489b50c5
commit 1868f6b0f7
5 changed files with 30 additions and 10 deletions

View file

@ -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)