Files
brokenlander fe9608b2ab feat(web): add monitor layout extensions (#2423)
The web client sent no Client Monitor Data and only logged the server's
monitor layout, so an application could not span one session across
several screens or learn the layout the server applied.

`monitor_layout` sends up to 16 monitors as Client Monitor Data
(MS-RDPBCGR 2.2.1.3.6), five numbers each: left, top, right and bottom
(both inclusive) and flags.
A valid layout has exactly one primary monitor at (0, 0), ordered
rectangles, and a 200–32,766-pixel virtual desktop in each dimension.
The requested desktop size is derived from the monitor union, overriding
any configured size; an invalid list is logged and ignored.

`monitor_layout_callback` is called in the same form with the layout the
server sends during connection finalization, after a
deactivation-reactivation sequence, and in a Monitor Layout PDU during
the session.
`iron-remote-desktop-rdp` exports `monitorLayout` and
`monitorLayoutCallback`, which take and pass `MonitorRect` objects.
The TypeScript callback exposes only the primary flag.

---------

Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-15 18:18:01 -05:00
..

IronRDP project automation

Free-form automation following cargo xtask specification.

Benchmark capture corpus

cargo xtask bench corpus-fetch
cargo xtask bench corpus-list

Both commands run the corpus-bench binary from ironrdp-bench, which owns the corpus code and its dependencies. corpus-fetch uses curl to download the captures listed in crates/ironrdp-bench/corpus.toml from the pinned upstream commit and verifies each SHA-256 digest. Verified captures are cached under the ignored bench-data/wireshark-rdp/<revision>/captures directory.

To update the corpus, change the manifest revision, entries, and digests together, then run cargo xtask bench corpus-fetch. Never commit captures, TLS key material, decrypted payloads, or generated output.