Smithay / client-toolkit

Smithay's toolkit for writing wayland clients
MIT License
286 stars 80 forks source link

Request: `Option<NonZeroU32>` instead of u32 in `wlr_layer::LayerSurfaceConfigure.new_size` #438

Open Koranir opened 10 months ago

Koranir commented 10 months ago

https://github.com/Smithay/client-toolkit/blob/da3e5c573a261117cbd70dc079a333bcd610a1d7/src/shell/wlr_layer/mod.rs#L269

The docs say that if the value is zero, you can choose any length for the axis you want. This seems like something Option::unwrap_or would be useful for instead of doing it manually.