diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-17 17:46:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-17 17:46:33 +0200 |
commit | 26deafd7dbf01493ebbd23357c5c3b29c56c6266 (patch) | |
tree | 0080a666f7d0f025fc945308e4e6a1e3866efe8b | |
parent | 208791dfd150fe797c770945dfd123d31435fa62 (diff) |
Include system info (x11 vs wayland) in --info output
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index c298d03..48bf13c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1596,6 +1596,10 @@ static bool is_xwayland(Display *display) { return xwayland_found; } +static void list_system_info(bool wayland) { + printf("display_server %s\n", wayland ? "wayland" : "x11"); +} + static void list_gpu_info(gsr_egl *egl) { switch(egl->gpu_info.vendor) { case GSR_GPU_VENDOR_AMD: @@ -1707,6 +1711,8 @@ static void list_command() { av_log_set_level(AV_LOG_FATAL); + puts("section=system_info"); + list_system_info(wayland); puts("section=gpu_info"); list_gpu_info(&egl); puts("section=video_codecs"); |