Fix a race condition when switching to a multihead fullscreen mode.
authorPhilip Langdale <philipl@fido2.homeip.net>
Fri, 9 Feb 2007 02:07:19 +0000 (18:07 -0800)
committerPhilip Langdale <philipl@fido2.homeip.net>
Fri, 9 Feb 2007 02:07:19 +0000 (18:07 -0800)
commit2ec8c25cc935a318bd07c0d1fba9960dfe8f38d4
tree37127ff11360d39c57de7b804e5c4913fec20a72
parenta8afe781e108773e4a575ecc3330a5aa83c1cbb9
Fix a race condition when switching to a multihead fullscreen mode.

Due to implemtation details on the host side, switching to a multihead
fullscreen mode means multiple mode changes along the way. However,
because rrSetScreenConfig returns before the mode change completes,
we can enter a race, where a subsequent SetDisplayTopology overrides
the current pending one, leading to a mode switch where the resolution
and topology are no longer consistent.

So, we fix this by ignoring any attempts to set the pending topology if
one is already pending.
src/vmwarectrl.c