From f343bb709c2da1bc6b2a720cfa37c53ad8f50d73 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 20 Nov 2022 20:41:25 +0000 Subject: [PATCH] c/multi: Use XRT_STRUCT_INIT --- src/xrt/compositor/multi/comp_multi_system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c index fbba591e0..eff220d2d 100644 --- a/src/xrt/compositor/multi/comp_multi_system.c +++ b/src/xrt/compositor/multi/comp_multi_system.c @@ -546,7 +546,7 @@ system_compositor_set_state(struct xrt_system_compositor *xsc, struct xrt_compos mc->state.visible = visible; mc->state.focused = focused; - union xrt_compositor_event xce = {0}; + union xrt_compositor_event xce = XRT_STRUCT_INIT; xce.type = XRT_COMPOSITOR_EVENT_STATE_CHANGE; xce.state.visible = visible; xce.state.focused = focused; @@ -577,7 +577,7 @@ system_compositor_set_main_app_visibility(struct xrt_system_compositor *xsc, str struct multi_compositor *mc = multi_compositor(xc); (void)msc; - union xrt_compositor_event xce = {0}; + union xrt_compositor_event xce = XRT_STRUCT_INIT; xce.type = XRT_COMPOSITOR_EVENT_OVERLAY_CHANGE; xce.overlay.visible = visible;