From 8defffabff5853896cd74101fe94b3c4610b0edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 21 Mar 2026 18:56:23 +0800 Subject: [PATCH] DisplayServer (Linux): fixes build failure on older Wayland versions Fixes #2237 --- .../kde-output-device-v2-client-protocol.h | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/detection/displayserver/linux/wayland/kde-output-device-v2-client-protocol.h b/src/detection/displayserver/linux/wayland/kde-output-device-v2-client-protocol.h index 4ac05cf63..2ed227530 100644 --- a/src/detection/displayserver/linux/wayland/kde-output-device-v2-client-protocol.h +++ b/src/detection/displayserver/linux/wayland/kde-output-device-v2-client-protocol.h @@ -251,12 +251,12 @@ kde_output_device_registry_v2_destroy(struct kde_output_device_registry_v2 *kde_ * The compositor may still send new output announcements after calling this * request until the kde_output_device_registry_v2.finished event is sent. */ -static inline void -kde_output_device_registry_v2_stop(struct kde_output_device_registry_v2 *kde_output_device_registry_v2) -{ - wl_proxy_marshal_flags((struct wl_proxy *) kde_output_device_registry_v2, - KDE_OUTPUT_DEVICE_REGISTRY_V2_STOP, NULL, wl_proxy_get_version((struct wl_proxy *) kde_output_device_registry_v2), 0); -} +// static inline void +// kde_output_device_registry_v2_stop(struct kde_output_device_registry_v2 *kde_output_device_registry_v2) +// { +// wl_proxy_marshal_flags((struct wl_proxy *) kde_output_device_registry_v2, +// KDE_OUTPUT_DEVICE_REGISTRY_V2_STOP, NULL, wl_proxy_get_version((struct wl_proxy *) kde_output_device_registry_v2), 0); +// } #ifndef KDE_OUTPUT_DEVICE_V2_SUBPIXEL_ENUM #define KDE_OUTPUT_DEVICE_V2_SUBPIXEL_ENUM @@ -1188,12 +1188,12 @@ kde_output_device_v2_destroy(struct kde_output_device_v2 *kde_output_device_v2) * This notifies the compositor that the client no longer wishes to use * the kde_output_device_v2 object. */ -static inline void -kde_output_device_v2_release(struct kde_output_device_v2 *kde_output_device_v2) -{ - wl_proxy_marshal_flags((struct wl_proxy *) kde_output_device_v2, - KDE_OUTPUT_DEVICE_V2_RELEASE, NULL, wl_proxy_get_version((struct wl_proxy *) kde_output_device_v2), WL_MARSHAL_FLAG_DESTROY); -} +// static inline void +// kde_output_device_v2_release(struct kde_output_device_v2 *kde_output_device_v2) +// { +// wl_proxy_marshal_flags((struct wl_proxy *) kde_output_device_v2, +// KDE_OUTPUT_DEVICE_V2_RELEASE, NULL, wl_proxy_get_version((struct wl_proxy *) kde_output_device_v2), WL_MARSHAL_FLAG_DESTROY); +// } #ifndef KDE_OUTPUT_DEVICE_MODE_V2_FLAGS_ENUM #define KDE_OUTPUT_DEVICE_MODE_V2_FLAGS_ENUM