Skip to main content

msg_surface_resize

Function msg_surface_resize 

Source
pub fn msg_surface_resize(
    session_id: u16,
    surface_id: u16,
    width: u16,
    height: u16,
    scale_120: u16,
    codec_support: u8,
) -> Vec<u8> 
Expand description

scale_120 is the device-pixel-ratio in 1/120th units, matching Wayland’s fractional_scale_v1 convention: 120 = 1×, 180 = 1.5×, 240 = 2×. A value of 0 means “unspecified” (server defaults to 1×).

codec_support is a bitmask of codecs the client can decode (CODEC_SUPPORT_*). 0 means “accept anything”.