diff --git a/src/ifs/ext_session_lock_v1.rs b/src/ifs/ext_session_lock_v1.rs index 5bb3bb07..cc08e3e2 100644 --- a/src/ifs/ext_session_lock_v1.rs +++ b/src/ifs/ext_session_lock_v1.rs @@ -72,6 +72,7 @@ impl ExtSessionLockV1RequestHandler for ExtSessionLockV1 { node.set_lock_surface(Some(new.clone())); let pos = node.global.pos.get(); new.change_extents(pos); + new.surface.set_output(&node); self.client.state.tree_changed(); } } diff --git a/src/ifs/wl_surface/ext_session_lock_surface_v1.rs b/src/ifs/wl_surface/ext_session_lock_surface_v1.rs index 485a9a75..78a39db3 100644 --- a/src/ifs/wl_surface/ext_session_lock_surface_v1.rs +++ b/src/ifs/wl_surface/ext_session_lock_surface_v1.rs @@ -44,7 +44,7 @@ impl ExtSessionLockSurfaceV1 { pub fn change_extents(&self, rect: Rect) { self.send_configure(rect.width(), rect.height()); - self.surface.set_absolute_position(rect.x1(), rect.x2()); + self.surface.set_absolute_position(rect.x1(), rect.y1()); } fn send_configure(&self, width: i32, height: i32) {