Send wl_surface::leave before destroying output global

This commit is contained in:
Ian Douglas Scott 2025-06-24 14:19:05 -07:00 committed by Victoria Brekenfeld
parent e581cbf05a
commit 17d6edb6d5

View file

@ -251,6 +251,7 @@ where
if let Some(inner) = output.user_data().get::<OutputState>() {
let mut inner = inner.lock().unwrap();
inner.enabled = false;
output.leave_all();
if let Some(global) = inner.global.take() {
remove_global_with_timer(&self.dh, &self.event_loop_handle, global);
}