mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 01:18:31 +00:00
st/oxr: Set visibility and z_order if multi compositor controls are available
This commit is contained in:
parent
f82f289907
commit
7c77625da9
2
doc/changes/state_trackers/mr.759.md
Normal file
2
doc/changes/state_trackers/mr.759.md
Normal 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.
|
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue