From 436bcf9a4755b24f7fadc100ba8deaa7f343ba86 Mon Sep 17 00:00:00 2001 From: Steve Williams Date: Sat, 7 Feb 2026 08:36:29 +0400 Subject: [PATCH] color-representation-v1: fix condition in surface commit --- types/wlr_color_representation_v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wlr_color_representation_v1.c b/types/wlr_color_representation_v1.c index ab7df30b0..856dc84f8 100644 --- a/types/wlr_color_representation_v1.c +++ b/types/wlr_color_representation_v1.c @@ -242,7 +242,7 @@ static void surface_synced_commit(struct wlr_surface_synced *synced) { } uint32_t drm_format = DRM_FORMAT_INVALID; - if (!color_repr->surface->buffer){ + if (color_repr->surface->buffer){ drm_format = buffer_get_drm_format(&color_repr->surface->buffer->base); } if (drm_format == DRM_FORMAT_INVALID) {