shell: Correctly handle window geometry

This commit is contained in:
Victoria Brekenfeld 2022-10-24 14:05:36 +02:00
parent 1eb5d1e64f
commit f59bb8a06e
3 changed files with 9 additions and 6 deletions

View file

@ -221,7 +221,7 @@ where
) -> Vec<C> {
AsRenderElements::<R>::render_elements::<CosmicWindowRenderElement<R>>(
&self.window,
location - self.window.geometry().loc.to_physical_precise_round(scale),
location,
scale,
)
.into_iter()