Rearrange layer map on winit resize

This commit is contained in:
Ottatop 2023-08-07 14:16:33 -05:00 committed by Ottatop
parent 766567cf48
commit f0c77c9e88

View file

@ -15,7 +15,7 @@ use smithay::{
winit::{WinitError, WinitEvent, WinitGraphicsBackend},
},
delegate_dmabuf,
desktop::{space, utils::send_frames_surface_tree},
desktop::{layer_map_for_output, space, utils::send_frames_surface_tree},
input::pointer::{CursorImageAttributes, CursorImageStatus},
output::{Output, Subpixel},
reexports::{
@ -227,6 +227,7 @@ pub fn run_winit() -> Result<(), Box<dyn Error>> {
None,
None,
);
layer_map_for_output(&output).arrange();
state.re_layout(&output);
}
WinitEvent::Focus(_) => {}