kms: Don't join on DrmSurface drop
This commit is contained in:
parent
458f5f4dcf
commit
cd1117080c
3 changed files with 22 additions and 9 deletions
|
|
@ -494,8 +494,9 @@ impl State {
|
|||
if let Some(mut leasing_global) = device.inner.leasing_global.take() {
|
||||
leasing_global.disable_global::<State>();
|
||||
}
|
||||
for surface in device.inner.surfaces.values_mut() {
|
||||
for (_, surface) in device.inner.surfaces.drain() {
|
||||
outputs_removed.push(surface.output.clone());
|
||||
surface.drop_and_join();
|
||||
}
|
||||
if let Some(token) = device.event_token.take() {
|
||||
self.common.event_loop_handle.remove(token);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue