sway/commands/output: Add command to set color profile

This makes it possible to render output buffers in a different color
space, by specifying an ICC profile for the output.
This commit is contained in:
Manuel Stoeckl 2023-07-17 21:40:28 -04:00 committed by Simon Ser
parent 2e9139df66
commit 40ca4150b2
13 changed files with 147 additions and 1 deletions

View file

@ -269,7 +269,10 @@ static int output_repaint_timer_handler(void *data) {
return 0;
}
wlr_scene_output_commit(output->scene_output, NULL);
struct wlr_scene_output_state_options opts = {
.color_transform = output->color_transform,
};
wlr_scene_output_commit(output->scene_output, &opts);
return 0;
}