From b0d47951f646d3ec80fc9333fa61c3d35a17a9b3 Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Wed, 9 Aug 2023 14:00:41 +0200 Subject: [PATCH] c/main: Pass wm_capabilities to xdg_toplevel_listener. Fixes GCC 13 and clang 15 warning [-Wmissing-field-initializers]. For recent Wayland versions, correctly initialize the xdg_toplevel_listener struct. --- src/xrt/compositor/main/comp_window_wayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xrt/compositor/main/comp_window_wayland.c b/src/xrt/compositor/main/comp_window_wayland.c index 18623bb16..11954fb55 100644 --- a/src/xrt/compositor/main/comp_window_wayland.c +++ b/src/xrt/compositor/main/comp_window_wayland.c @@ -182,6 +182,9 @@ static const struct xdg_toplevel_listener xdg_toplevel_listener = { #if XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION >= 4 NULL, #endif +#if XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION >= 5 + NULL, +#endif }; static void