Skip to main content

Module outclient

Module outclient 

Source
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§

ScaleOutcome
What a scale request did, from the caller’s point of view.

Functions§

hold_spare_screens
Hold every screen past the first keep at size. 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 on socket_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 on socket_path this mode and scale in one configuration.