Skip to content

Xwayland: Couple of fixes for when Xwayland vanishes

Olivier Fourdan requested to merge ofourdan/mutter:issue1638 into master

Now that mutter can survive Xwayland vanishing in mid-flight, we need to actually check if the Xserver reply fetched though XCB is not NULL, otherwise we may crash, that would be a shame.

Also, when a game is playing fullscreen, mutter may use a direct scanout of the surface.

However, if that surface is from Xwayland and Xwayland had vanished (now that mutter can survive that), the actual surface might be NULL, so check for that case to avoid a crash.

Close: #1638 (closed)

Merge request reports