c/multi: Use XRT_STRUCT_INIT

This commit is contained in:
Jakob Bornecrantz 2022-11-20 20:41:25 +00:00
parent f0021c359f
commit f343bb709c

View file

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