mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
color management
This commit is contained in:
parent
ea3ba203cc
commit
7ec61567c2
15 changed files with 119 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ static void pretty_print_output(json_object *o) {
|
|||
json_object_object_get_ex(o, "active", &active);
|
||||
json_object_object_get_ex(o, "current_workspace", &ws);
|
||||
json_object *make, *model, *serial, *scale, *scale_filter, *subpixel,
|
||||
*transform, *max_render_time, *adaptive_sync_status;
|
||||
*transform, *max_render_time, *adaptive_sync_status, *icc_profile;
|
||||
json_object_object_get_ex(o, "make", &make);
|
||||
json_object_object_get_ex(o, "model", &model);
|
||||
json_object_object_get_ex(o, "serial", &serial);
|
||||
|
|
@ -200,6 +200,7 @@ static void pretty_print_output(json_object *o) {
|
|||
json_object_object_get_ex(o, "transform", &transform);
|
||||
json_object_object_get_ex(o, "max_render_time", &max_render_time);
|
||||
json_object_object_get_ex(o, "adaptive_sync_status", &adaptive_sync_status);
|
||||
json_object_object_get_ex(o, "icc_profile", &icc_profile);
|
||||
json_object *x, *y;
|
||||
json_object_object_get_ex(rect, "x", &x);
|
||||
json_object_object_get_ex(rect, "y", &y);
|
||||
|
|
@ -243,6 +244,8 @@ static void pretty_print_output(json_object *o) {
|
|||
|
||||
printf(" Adaptive sync: %s\n",
|
||||
json_object_get_string(adaptive_sync_status));
|
||||
printf(" ICC Profile: %s\n",
|
||||
json_object_get_string(icc_profile));
|
||||
} else {
|
||||
printf(
|
||||
"Output %s '%s %s %s' (inactive)\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue