mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
sway/server: set color_manager for root scene
Chase https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5122/
This commit is contained in:
parent
bc96d0acdf
commit
d9e615c507
1 changed files with 3 additions and 1 deletions
|
|
@ -467,7 +467,8 @@ bool server_init(struct sway_server *server) {
|
||||||
WP_COLOR_MANAGER_V1_PRIMARIES_SRGB,
|
WP_COLOR_MANAGER_V1_PRIMARIES_SRGB,
|
||||||
WP_COLOR_MANAGER_V1_PRIMARIES_BT2020,
|
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 = {
|
.features = {
|
||||||
.parametric = true,
|
.parametric = true,
|
||||||
.set_mastering_display_primaries = true,
|
.set_mastering_display_primaries = true,
|
||||||
|
|
@ -479,6 +480,7 @@ bool server_init(struct sway_server *server) {
|
||||||
.primaries = primaries,
|
.primaries = primaries,
|
||||||
.primaries_len = sizeof(primaries) / sizeof(primaries[0]),
|
.primaries_len = sizeof(primaries) / sizeof(primaries[0]),
|
||||||
});
|
});
|
||||||
|
wlr_scene_set_color_manager_v1(root->root_scene, cm);
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_list_init(&server->pending_launcher_ctxs);
|
wl_list_init(&server->pending_launcher_ctxs);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue