check X comp_data existence in pixmap PRESENT usage during refresh

CID 1155279
This commit is contained in:
Mike Blumenkrantz 2014-03-13 12:22:04 -04:00
parent 450d6cf321
commit b373b561e4
1 changed files with 2 additions and 1 deletions

View File

@ -332,7 +332,8 @@ e_pixmap_refresh(E_Pixmap *cp)
e_comp_object_native_surface_set(cp->client->frame, 0);
success = !!pixmap;
if (!success) break;
if (ecore_x_present_exists() && cp->client->comp_data->pw && cp->client->comp_data->ph &&
if (ecore_x_present_exists() && cp->client->comp_data &&
cp->client->comp_data->pw && cp->client->comp_data->ph &&
(!e_client_util_resizing_get(cp->client))) //PRESENT is unreliable during resizes
{
pw = cp->client->comp_data->pw;