st/oxr: Set visibility and z_order if multi compositor controls are available

This commit is contained in:
Jakob Bornecrantz 2021-04-13 02:15:17 +01:00 committed by Jakob Bornecrantz
parent f82f289907
commit 7c77625da9
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,2 @@
OpenXR: Use new multi compositor controls to set visibility and z_order if
available. This is needed for when we are not in service mode.

View file

@ -1977,6 +1977,10 @@ oxr_session_destroy(struct oxr_logger *log, struct oxr_handle_base *hb)
return oxr_error((LOG), XR_ERROR_RUNTIME_FAILURE, "Failed to create native compositor! '%i'", \
xret); \
} \
if ((SESS)->sys->xsysc->xmcc != NULL) { \
xrt_syscomp_set_state((SESS)->sys->xsysc, &(SESS)->xcn->base, true, true); \
xrt_syscomp_set_z_order((SESS)->sys->xsysc, &(SESS)->xcn->base, 0); \
} \
} while (false)
#define OXR_SESSION_ALLOCATE(LOG, SYS, OUT) \