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