Expand description
Output-management client scaling a nested app compositor’s screens.
zwlr_output_management_v1 client: sets the output scale of a nested session
compositor, in-process rather than through a wlr-randr fork.
Applications draw larger when the compositor they are on scales its own output. Scaling pixelflux’s capture output instead shrinks the logical size the session is handed, which upscales the desktop rather than enlarging its interface, so a DPI change for a nested session lands here.
Compositors without the protocol (KWin offers kde_output_management_v2)
report [ScaleOutcome::Unsupported]; their scale comes from the capture
output, which they follow. Blocking, off the compositor thread, with every
round-trip deadline-bounded.
Enums§
- Scale
Outcome - What a scale request did, from the caller’s point of view.
Functions§
- hold_
spare_ screens - Hold every screen past the first
keepatsize. A session compositor opens the screens it was started with whether or not anything watches them, and one held at a real screen’s size stretches the session’s coordinate space onto a screen nobody sees. Returns how many were resized. - set_
output_ scale - Set the scale of the
index-th screen of the compositor onsocket_path, leaving its mode and position alone. Blocking; call off the compositor’s calloop thread. - set_
screen_ geometry - Give the
index-th screen of the compositor onsocket_paththis mode and scale in one configuration.