fn cast_dimension_to_hint(val: u32) -> i32
Cast a dimension value into a hinted dimension for WmSizeHints, clamping if too large.
WmSizeHints