Don't set viewport for 1x1 windows with scaling

This commit is contained in:
Shawn Wallace 2025-04-13 23:50:13 -04:00
parent 555f9492ad
commit 0cd5059c42
5 changed files with 106 additions and 49 deletions

View file

@ -170,6 +170,10 @@ impl<C: XConnection> Dispatch<WlSurface, ObjectKey> for ServerState<C> {
}
surface.destroy_role();
surface.client.destroy();
surface.viewport.destroy();
if let Some(f) = &mut surface.fractional {
f.destroy();
}
debug!(
"deleting key: {key:?} (surface {:?})",
surface.server.id().protocol_id()