Cherry-pick 3.36: Fix desktop freeze on pageflip failure
This is a trivial backport of !1209 (merged) to the 3.36 branch.
The issue existed already on the 3.34 branch, so applies here as well.
This is a trivial backport of !1209 (merged) to the 3.36 branch.
The issue existed already on the 3.34 branch, so applies here as well.