From 3f3323c47d5aae265b1c6a35da97be6e8f942bdf Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Fri, 13 Jun 2025 17:06:37 -0400 Subject: [PATCH] swaymsg: print allow_drm_leasing config --- swaymsg/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swaymsg/main.c b/swaymsg/main.c index d58f29e2c..84ec62b5b 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c @@ -189,7 +189,7 @@ static void pretty_print_output(json_object *o) { json_object_object_get_ex(o, "current_workspace", &ws); json_object_object_get_ex(o, "non_desktop", &non_desktop); json_object *make, *model, *serial, *scale, *scale_filter, *subpixel, - *transform, *max_render_time, *adaptive_sync_status, *allow_tearing, + *transform, *max_render_time, *adaptive_sync_status, *allow_tearing, *allow_drm_leasing, *hdr; json_object_object_get_ex(o, "make", &make); json_object_object_get_ex(o, "model", &model); @@ -201,6 +201,7 @@ static void pretty_print_output(json_object *o) { 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, "allow_tearing", &allow_tearing); + json_object_object_get_ex(o, "allow_drm_leasing", &allow_drm_leasing); json_object_object_get_ex(o, "hdr", &hdr); json_object *x, *y; json_object_object_get_ex(rect, "x", &x); @@ -265,6 +266,9 @@ static void pretty_print_output(json_object *o) { printf(" Allow tearing: %s\n", json_object_get_boolean(allow_tearing) ? "yes" : "no"); + printf(" Allow DRM leasing: %s\n", + json_object_get_boolean(allow_drm_leasing) ? "yes" : "no"); + const char *hdr_str = "unsupported"; if (json_object_get_boolean(features_hdr)) { hdr_str = json_object_get_boolean(hdr) ? "on" : "off";