xwayland: allow windows to scale themselves
This commit is contained in:
parent
cc8db84289
commit
19b07fa7dc
40 changed files with 800 additions and 80 deletions
|
|
@ -135,7 +135,8 @@ impl WlSubsurface {
|
|||
v.pending.set(false);
|
||||
self.node.borrow_mut().replace(v);
|
||||
}
|
||||
if let Some((x, y)) = pending.position.take() {
|
||||
if let Some((mut x, mut y)) = pending.position.take() {
|
||||
client_wire_scale_to_logical!(self.surface.client, x, y);
|
||||
self.position
|
||||
.set(self.surface.buffer_abs_pos.get().at_point(x, y));
|
||||
let (parent_x, parent_y) = self.parent.buffer_abs_pos.get().position();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue