session-lock: fix surface initialization
This commit is contained in:
parent
44bdca8235
commit
0632990f61
2 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue