feat(server): advertize Bitmap::desktopResizeFlag

This makes freerdp keep the flag up and handle desktop
resize/deactivation-reactivation. It should be okay to advertize,
if the server doesn't resize anyway, I guess.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2025-01-21 23:23:13 +04:00 committed by Benoît Cortier
parent 7c72a9f9bb
commit a0fccf8d1a

View file

@ -28,7 +28,9 @@ fn bitmap_capabilities(size: &DesktopSize) -> capability_sets::Bitmap {
pref_bits_per_pix: 32,
desktop_width: size.width,
desktop_height: size.height,
desktop_resize_flag: false,
// This makes freerdp keep the flag up and handle desktop resize/deactivation-reactivation.
// Likely okay to advertize if the server doesn't resize anyway.
desktop_resize_flag: true,
drawing_flags: capability_sets::BitmapDrawingFlags::empty(),
}
}