Ecore_Evas: We don't need to allocate 10 items for this array if we

are only going to use (at most) 3.



SVN revision: 65194
This commit is contained in:
Christopher Michael 2011-11-14 18:48:19 +00:00
parent f4ec79d7a2
commit 6f2a5f3562
1 changed files with 3 additions and 3 deletions

View File

@ -56,17 +56,17 @@ _ecore_evas_x_group_leader_update(Ecore_Evas *ee)
static void
_ecore_evas_x_protocols_set(Ecore_Evas *ee)
{
Ecore_X_Atom protos[10];
Ecore_X_Atom protos[3];
unsigned int num = 0, tmp = 0;
if (ee->func.fn_delete_request)
protos[num++] = ECORE_X_ATOM_WM_DELETE_WINDOW;
protos[num++] = ECORE_X_ATOM_WM_DELETE_WINDOW;
protos[num++] = ECORE_X_ATOM_NET_WM_PING;
protos[num++] = ECORE_X_ATOM_NET_WM_SYNC_REQUEST;
ecore_x_icccm_protocol_atoms_set(ee->prop.window, protos, num);
if (!ee->engine.x.netwm_sync_counter)
ee->engine.x.netwm_sync_counter = ecore_x_sync_counter_new(0);
ee->engine.x.netwm_sync_counter = ecore_x_sync_counter_new(0);
tmp = ee->engine.x.netwm_sync_counter;
ecore_x_window_prop_card32_set(ee->prop.window,