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.
This commit is contained in:
Lubosz Sarnecki 2023-08-09 14:00:41 +02:00 committed by Jakob Bornecrantz
parent eb438b2381
commit b0d47951f6

View file

@ -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