Do not clear invalid region if no client connected.

This commit is contained in:
Armin Novak 2018-03-06 15:52:24 +01:00
parent 2ad5b3510d
commit 1c72127c6b

View File

@ -217,10 +217,7 @@ static int win_shadow_surface_copy(winShadowSubsystem* subsystem)
surface = server->surface;
if (ArrayList_Count(server->clients) < 1)
{
region16_clear(&(surface->invalidRegion));
return 1;
}
surfaceRect.left = surface->x;
surfaceRect.top = surface->y;