ecore_evas: we shouldn't do anything when we are deleted.

This commit is contained in:
Cedric Bail 2018-05-08 18:46:53 -07:00 committed by Cedric BAIL
parent 741f3e39ed
commit bff5c37c1b
1 changed files with 2 additions and 0 deletions

View File

@ -227,6 +227,7 @@ _ecore_evas_x_protocols_set(Ecore_Evas *ee)
Ecore_X_Atom protos[3];
unsigned int num = 0, tmp = 0;
if (ee->deleted) return;
if (ee->func.fn_delete_request)
protos[num++] = ECORE_X_ATOM_WM_DELETE_WINDOW;
protos[num++] = ECORE_X_ATOM_NET_WM_PING;
@ -254,6 +255,7 @@ _ecore_evas_x_sync_set(Ecore_Evas *ee)
Ecore_Evas_Engine_Data_X11 *edata = ee->engine.data;
Ecore_X_Sync_Counter sync_counter = edata->sync_counter;
if (ee->deleted) return;
if (((ee->should_be_visible) || (ee->visible)) &&
((ecore_x_e_comp_sync_supported_get(edata->win_root)) &&
(!ee->no_comp_sync) && (_ecore_evas_app_comp_sync)))