Schedule render when session lock is created/destroyed

This commit is contained in:
Ian Douglas Scott 2023-11-14 14:05:47 -08:00 committed by Victoria Brekenfeld
parent 440cd03371
commit b33c1dc9f7

View file

@ -36,10 +36,20 @@ impl SessionLockHandler for State {
ext_session_lock,
surfaces: HashMap::new(),
});
for output in self.common.shell.outputs() {
self.backend
.schedule_render(&self.common.event_loop_handle, &output, None);
}
}
fn unlock(&mut self) {
self.common.shell.session_lock = None;
for output in self.common.shell.outputs() {
self.backend
.schedule_render(&self.common.event_loop_handle, &output, None);
}
}
fn new_surface(&mut self, lock_surface: LockSurface, wl_output: WlOutput) {