all: implement screen locking
This commit is contained in:
parent
9db389835d
commit
d42add4d18
24 changed files with 618 additions and 6 deletions
|
|
@ -73,6 +73,14 @@ impl Renderer<'_> {
|
|||
}
|
||||
|
||||
pub fn render_output(&mut self, output: &OutputNode, x: i32, y: i32) {
|
||||
if self.state.lock.locked.get() {
|
||||
if let Some(surface) = output.lock_surface.get() {
|
||||
if surface.surface.buffer.get().is_some() {
|
||||
self.render_surface(&surface.surface, x, y);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
if let Some(ws) = output.workspace.get() {
|
||||
if let Some(fs) = ws.fullscreen.get() {
|
||||
fs.tl_as_node().node_render(self, x, y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue