Skip to content

Commit

Permalink
Schedule render when session lock is created/destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 authored and Drakulix committed Nov 15, 2023
1 parent 440cd03 commit b33c1dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/wayland/handlers/session_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b33c1dc

Please sign in to comment.