After the fix for 6655001 the replaceSurfaceData is called excessively, leading
to regression test failures because of OOMEs.
We need to only replace the surface data when the current transparency/translucency
status of the window changes from opaque to non-opaque/translucent.
Currently we replace it even if the transparency factor is changed.