1
0
Fork 0

backends/native: Only warn about cursor sizes once

Because if the current theme has exceeded the dimensions of
`DRM_CAP_CURSOR_WIDTH/HEIGHT` then the warning is just going to repeat
every time the cursor changes. We still fall back to software cursors
just fine so it's not important to repeat the warning.

Also the theme cursor size is not "Invalid" so we change the message to
match that of 47 main.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3597
This commit is contained in:
Daniel van Vugt 2024-08-07 14:15:50 +08:00
parent 04995f5664
commit 05f9b58965

View file

@ -629,8 +629,7 @@ load_cursor_sprite_gbm_buffer_for_crtc (MetaCursorRendererNative *native,
if (width > cursor_width || height > cursor_height)
{
meta_warning ("Invalid theme cursor size (must be at most %ux%u)",
(unsigned int)cursor_width, (unsigned int)cursor_height);
g_warning_once ("Can't handle cursor size %ux%u", width, height);
return FALSE;
}