Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash at walking window for z order list #13

Merged
merged 1 commit into from
May 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion libweston/backend-rdp/rdprail.c
Original file line number Diff line number Diff line change
Expand Up @@ -2454,7 +2454,12 @@ rdp_insert_window_zorder_array(struct weston_view *view, UINT32 *windowIdArray,
}

/* insert itself as parent (which is below sub-surfaces in z order) */
if (rail_state->isWindowCreated &&
/* because z order is taken from compositor's scene-graph, it's possible
there is surface hasn't been associated with rail_state, so check it.
and if window is not remoted to client side, or minimized (or going to be
minimized), those won't included in z order list. */
if (rail_state &&
rail_state->isWindowCreated &&
!rail_state->is_minimized &&
!rail_state->is_minimized_requested) {
if (iCurrent >= WindowIdArraySize) {
Expand Down