# SDL: wayland: Fix color manager protocol string check

**URL:** <https://discourse.libsdl.org/t/sdl-wayland-fix-color-manager-protocol-string-check/57990>\
**Category:** SDL Commits\
**Created:** [February 19, 2025, 4:44pm UTC](https://discourse.libsdl.org/t/sdl-wayland-fix-color-manager-protocol-string-check/57990 "2025-02-19T16:44:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [February 19, 2025, 4:44pm UTC](https://discourse.libsdl.org/t/sdl-wayland-fix-color-manager-protocol-string-check/57990/1 "2025-02-19T16:44:01Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/9e4c657ed85c8e957350457364d49fd4f70f04be>

```diff
From 9e4c657ed85c8e957350457364d49fd4f70f04be Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Wed, 19 Feb 2025 11:43:53 -0500
Subject: [PATCH] wayland: Fix color manager protocol string check

---
 src/video/wayland/SDL_waylandvideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c
index 15fa01b877398..e0f835a779b89 100644
--- a/src/video/wayland/SDL_waylandvideo.c
+++ b/src/video/wayland/SDL_waylandvideo.c
@@ -1331,7 +1331,7 @@ static void display_handle_global(void *data, struct wl_registry *registry, uint
         d->xdg_toplevel_icon_manager_v1 = wl_registry_bind(d->registry, id, &xdg_toplevel_icon_manager_v1_interface, 1);
     } else if (SDL_strcmp(interface, "frog_color_management_factory_v1") == 0) {
         d->frog_color_management_factory_v1 = wl_registry_bind(d->registry, id, &frog_color_management_factory_v1_interface, 1);
- } else if (SDL_strcmp(interface, "xx_color_manager_v4") == 0) {
+ } else if (SDL_strcmp(interface, "wp_color_manager_v1") == 0) {
         d->wp_color_manager_v1 = wl_registry_bind(d->registry, id, &wp_color_manager_v1_interface, 1);
         Wayland_InitColorManager(d);
     }

```
