Send wl_surface::leave before destroying output global
This commit is contained in:
parent
e581cbf05a
commit
17d6edb6d5
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue