Skip to content

cursor-renderer-native: Sanity check the kernel's recommended cursor size

Daniel van Vugt requested to merge vanvugt/mutter:sanitize-cursor-size into main

On Xilinx, the width and height are both reported as 2147483647 which results in repeated buffer creation failure by GBM (or dumb buffers) simply because of the unrealistic size.

Now we sanity check the recommended buffer dimensions with a very high threshold, and fall back to 64x64 when the kernel driver isn't giving sane dimensions.

Merge request reports