kms: Fix restoring surfaces on vt switch
This commit is contained in:
parent
19f4b9d247
commit
9ae225f7f7
1 changed files with 4 additions and 1 deletions
|
|
@ -310,8 +310,11 @@ pub fn init_backend(
|
||||||
}
|
}
|
||||||
SessionEvent::PauseSession => {
|
SessionEvent::PauseSession => {
|
||||||
libinput_context.suspend();
|
libinput_context.suspend();
|
||||||
for device in data.state.backend.kms().devices.values() {
|
for device in data.state.backend.kms().devices.values_mut() {
|
||||||
device.drm.pause();
|
device.drm.pause();
|
||||||
|
for surface in device.surfaces.values_mut() {
|
||||||
|
surface.surface = None;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue