fix: pass the full window size to xwayland
This commit is contained in:
parent
4eaaf4f55c
commit
51dd3bc66f
2 changed files with 3 additions and 2 deletions
|
|
@ -238,7 +238,8 @@ impl CosmicSurface {
|
||||||
toplevel.with_pending_state(|state| state.size = Some(geo.size.as_logical()))
|
toplevel.with_pending_state(|state| state.size = Some(geo.size.as_logical()))
|
||||||
}
|
}
|
||||||
WindowSurface::X11(surface) => {
|
WindowSurface::X11(surface) => {
|
||||||
let _ = surface.configure_with_sync(geo.as_logical(), None);
|
let _ =
|
||||||
|
surface.configure_with_sync(geo.as_logical() + surface.frame_extents(), None);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -543,7 +543,7 @@ impl ResizeSurfaceGrab {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
WindowSurface::X11(surface) => {
|
WindowSurface::X11(surface) => {
|
||||||
let mut geometry = surface.geometry();
|
let mut geometry = surface.last_configure();
|
||||||
geometry.loc += (location - new_location).as_logical();
|
geometry.loc += (location - new_location).as_logical();
|
||||||
let _ = surface.configure(geometry);
|
let _ = surface.configure(geometry);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue