mirror of
https://github.com/sol1/rustguac.git
synced 2026-09-10 01:26:06 +00:00
c526c2f00d
Client library (Client.js): new onmultimonlayout callback + a multimon-layout layerPropertyHandler (mirrors multi-touch), and sendSize extended to carry the optional per-monitor x_position/top_offset. rustguac: SpiceParams.secondary_monitors + a secondary-monitors connect arg so guacd advertises the allowed monitor count; CreateSessionRequest.max_monitors (secondary = max-1) wired through both SPICE branches. client.html: onargv reads the secondary-monitors count and onmultimonlayout parses the layout JSON (logging for now; per-monitor windows are A2). Verified on the canary vs VMID 300: client logs 'server allows 2 monitors' and receives a multimon-layout. The layout is request-driven (guacd activates a second guest head only when the client sends a size for monitor 1), so the second monitor appears in A2.