diff options
| author | llyyr <llyyr.public@gmail.com> | 2025-09-21 06:44:24 +0530 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-09-23 23:50:15 +0200 |
| commit | d9e615c507c1d669171e8222ef8b32bf8de07ed5 (patch) | |
| tree | 10a159cf458285fe6630253c83353f8b1fb55f7d | |
| parent | bc96d0acdf8544d81df669566b50032333ce16d9 (diff) | |
sway/server: set color_manager for root scene
Chase https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5122/
| -rw-r--r-- | sway/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/server.c b/sway/server.c index 8ad62c71..4e606a39 100644 --- a/sway/server.c +++ b/sway/server.c @@ -467,7 +467,8 @@ bool server_init(struct sway_server *server) { WP_COLOR_MANAGER_V1_PRIMARIES_SRGB, WP_COLOR_MANAGER_V1_PRIMARIES_BT2020, }; - wlr_color_manager_v1_create(server->wl_display, 1, &(struct wlr_color_manager_v1_options){ + struct wlr_color_manager_v1 *cm = wlr_color_manager_v1_create( + server->wl_display, 1, &(struct wlr_color_manager_v1_options){ .features = { .parametric = true, .set_mastering_display_primaries = true, @@ -479,6 +480,7 @@ bool server_init(struct sway_server *server) { .primaries = primaries, .primaries_len = sizeof(primaries) / sizeof(primaries[0]), }); + wlr_scene_set_color_manager_v1(root->root_scene, cm); } wl_list_init(&server->pending_launcher_ctxs); |
