1
0
Fork 0
forked from wry/wry

wl_surface: set output to dummy when unmapping

This commit is contained in:
Julian Orth 2025-12-20 19:52:20 +01:00
parent d461933a8c
commit fa69f89f39
4 changed files with 13 additions and 2 deletions

View file

@ -906,6 +906,12 @@ impl WlSurface {
fn unset_ext(&self) {
self.ext.set(self.client.state.none_surface_ext.clone());
self.set_dummy_output();
}
fn set_dummy_output(&self) {
let dummy_output = self.client.state.dummy_output.get().unwrap();
self.set_output(&dummy_output, NodeLocation::Output(dummy_output.id));
}
fn calculate_extents(&self, propagate: bool) {