1
0
Fork 0
forked from wry/wry

Merge pull request #462 from mahkoh/jorth/lock-idle-visibility

tree: set lock node to invisible when idling
This commit is contained in:
mahkoh 2025-05-09 19:48:23 +02:00 committed by GitHub
commit e6f9677a43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -55,6 +55,11 @@ impl ExtSessionLockSurfaceV1 {
height: height as _, height: height as _,
}); });
} }
pub fn set_visible(&self, visible: bool) {
self.surface.set_visible(visible);
self.seat_state.set_visible(self, visible);
}
} }
impl ExtSessionLockSurfaceV1RequestHandler for ExtSessionLockSurfaceV1 { impl ExtSessionLockSurfaceV1RequestHandler for ExtSessionLockSurfaceV1 {

View file

@ -976,7 +976,7 @@ impl OutputNode {
let mut visible = self.state.root_visible(); let mut visible = self.state.root_visible();
if self.state.lock.locked.get() { if self.state.lock.locked.get() {
if let Some(surface) = self.lock_surface.get() { if let Some(surface) = self.lock_surface.get() {
surface.surface.set_visible(visible); surface.set_visible(visible);
} }
visible = false; visible = false;
} }