From b0344e1fd8d7f0765964d6551a024de22776195a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 14 Nov 2024 15:33:35 -0500 Subject: [PATCH] surface: Add debug spew for color states Log the preferred color state events we get. --- gdk/wayland/gdksurface-wayland.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index 04e3936114..96438c9cf2 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -928,6 +928,10 @@ preferred_changed (GdkWaylandColorSurface *color, { GdkWaylandSurface *self = GDK_WAYLAND_SURFACE (data); + GDK_DISPLAY_DEBUG (gdk_surface_get_display (GDK_SURFACE (self)), EVENTS, + "preferred color state, surface %p color state %s", + self, gdk_color_state_get_name (color_state)); + gdk_surface_set_color_state (GDK_SURFACE (self), color_state); self->color_state_changed = TRUE;