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.

In Mutter 46 the warning was "Invalid theme cursor size". Same problem.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3597
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3924>
This commit is contained in:
Daniel van Vugt 2024-08-06 13:45:21 +08:00 committed by Carlos Garnacho
parent 07023b65bc
commit 7937f78c7e

View file

@ -719,7 +719,7 @@ load_cursor_sprite_gbm_buffer_for_crtc (MetaCursorRendererNative *native,
width, height,
&cursor_width, &cursor_height))
{
meta_warning ("Can't handle cursor size %ux%u)", width, height);
g_warning_once ("Can't handle cursor size %ux%u", width, height);
return FALSE;
}