From 7937f78c7e154032aaedd9d0d74edb2d9602eb3e Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Tue, 6 Aug 2024 13:45:21 +0800 Subject: [PATCH] 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: --- src/backends/native/meta-cursor-renderer-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-cursor-renderer-native.c b/src/backends/native/meta-cursor-renderer-native.c index d2474b659..4e18766bc 100644 --- a/src/backends/native/meta-cursor-renderer-native.c +++ b/src/backends/native/meta-cursor-renderer-native.c @@ -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; }