Skip to main content

host_layout_resolution

Function host_layout_resolution 

Source
pub(crate) fn host_layout_resolution(
    want: (i32, i32),
    current: Option<(i32, i32)>,
) -> Option<(i32, i32)>
Expand description

What the mode a host announced means for a capture configured at want, once the host has ruled on the layout request: Some(size) when the capture must follow a different mode the host runs, None when nothing changes — the host runs the requested size, or its mode is unknown and the capture keeps gating on the size it asked for. The verdict itself is not consulted: a host may answer succeeded for a mode it did not take (Hyprland acknowledges a custom mode it rejected), so the announced size decides. It has arrived by the time any verdict does, both riding the one host connection in order.