mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
st/oxr: Support FOCUSED to SYNCHRONIZED transfer in oxr_session_poll
This commit is contained in:
parent
8e70290ec1
commit
601143bfb7
|
@ -261,6 +261,14 @@ oxr_session_poll(struct oxr_logger *log, struct oxr_session *sess)
|
|||
if (sess->state == XR_SESSION_STATE_VISIBLE && sess->compositor_focused) {
|
||||
oxr_session_change_state(log, sess, XR_SESSION_STATE_FOCUSED);
|
||||
}
|
||||
|
||||
if (sess->state == XR_SESSION_STATE_FOCUSED && !sess->compositor_focused) {
|
||||
oxr_session_change_state(log, sess, XR_SESSION_STATE_VISIBLE);
|
||||
}
|
||||
|
||||
if (sess->state == XR_SESSION_STATE_VISIBLE && !sess->compositor_visible) {
|
||||
oxr_session_change_state(log, sess, XR_SESSION_STATE_SYNCHRONIZED);
|
||||
}
|
||||
}
|
||||
|
||||
static inline XrViewStateFlags
|
||||
|
|
Loading…
Reference in a new issue