Client resources can survive the client itself, in which case we may end up in our sync callback trying to access client's data after it's been freed/reclaimed.
Add a ClientStateCallback handler to monitor the client state changes and clear the sync callback set up by the glamor drm code if any.
937527f xwayland: Monitor client states to destroy callbacks
hw/xwayland/xwayland-glamor.c | 59 ++++++++++++++++++++++++++++++++++++-------
1 file changed, 50 insertions(+), 9 deletions(-)