From c7becf82bd2eea796d226025716859749d992e7d Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 23 Jun 2023 05:34:23 +0000 Subject: [PATCH] DisplayServer (Wayland): warn if some properties of wl_output_listener are not supported --- src/detection/displayserver/linux/wayland.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/detection/displayserver/linux/wayland.c b/src/detection/displayserver/linux/wayland.c index 7e7f98fb5..78b590995 100644 --- a/src/detection/displayserver/linux/wayland.c +++ b/src/detection/displayserver/linux/wayland.c @@ -141,18 +141,26 @@ static void waylandOutputHandler(WaylandData* wldata, struct wl_registry* regist #ifdef WL_OUTPUT_DONE_SINCE_VERSION .done = (void*) stubListener, + #else + #warning wl_output_listener::done is not supported #endif #ifdef WL_OUTPUT_SCALE_SINCE_VERSION .scale = waylandOutputScaleListener, + #else + #warning wl_output_listener::scale is not supported #endif #ifdef WL_OUTPUT_NAME_SINCE_VERSION .name = waylandOutputNameListener, + #else + #warning wl_output_listener::name is not supported #endif #ifdef WL_OUTPUT_DESCRIPTION_SINCE_VERSION .description = (void*) stubListener, + #else + #warning wl_output_listener::description is not supported #endif };