fix: pass the full window size to xwayland

This commit is contained in:
Hojjat 2026-06-05 15:28:12 -06:00 committed by Ian Douglas Scott
parent 4eaaf4f55c
commit 51dd3bc66f
2 changed files with 3 additions and 2 deletions

View file

@ -238,7 +238,8 @@ impl CosmicSurface {
toplevel.with_pending_state(|state| state.size = Some(geo.size.as_logical()))
}
WindowSurface::X11(surface) => {
let _ = surface.configure_with_sync(geo.as_logical(), None);
let _ =
surface.configure_with_sync(geo.as_logical() + surface.frame_extents(), None);
}
}
}

View file

@ -543,7 +543,7 @@ impl ResizeSurfaceGrab {
);
}
WindowSurface::X11(surface) => {
let mut geometry = surface.geometry();
let mut geometry = surface.last_configure();
geometry.loc += (location - new_location).as_logical();
let _ = surface.configure(geometry);
}