Skip to content

Commit

Permalink
JBR-5961 Wayland: can't switch between projects using menu
Browse files Browse the repository at this point in the history
prevent using a pointer to destroyed surface
  • Loading branch information
JB-Dmitry authored and jbrbot committed Nov 8, 2024
1 parent 1ee3c83 commit ba1b5ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/java.desktop/unix/native/libawt_wlawt/WLComponentPeer.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ DoHide(struct WLFrame *frame)
} else {
xdg_popup_destroy(frame->xdg_popup);
}
if (wl_surface_in_focus == frame->wl_surface) {
wl_surface_in_focus = NULL;
}
xdg_surface_destroy(frame->xdg_surface);
wl_surface_destroy(frame->wl_surface);
delete_all_tokens(frame->activation_token_list);
Expand Down

0 comments on commit ba1b5ce

Please sign in to comment.