set x11 broadcast atom hint array size based on array-name size

partial backport of ref 701e2d914a

fix T2744
This commit is contained in:
Mike Blumenkrantz 2015-09-26 12:03:52 -04:00
parent f65991a7ba
commit 6be7068674
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ e_hints_init(Ecore_Window root, Ecore_Window propwin)
"ENLIGHTENMENT_SCALE", "ENLIGHTENMENT_SCALE",
"_GTK_FRAME_EXTENTS", "_GTK_FRAME_EXTENTS",
}; };
Ecore_X_Atom atoms[6]; Ecore_X_Atom atoms[EINA_C_ARRAY_LENGTH(atom_names)];
Ecore_X_Atom supported[43]; Ecore_X_Atom supported[43];
int supported_num; int supported_num;
Ecore_X_Window win, twin; Ecore_X_Window win, twin;
@ -39,7 +39,7 @@ e_hints_init(Ecore_Window root, Ecore_Window propwin)
char *name; char *name;
double ts; double ts;
ecore_x_atoms_get(atom_names, 6, atoms); ecore_x_atoms_get(atom_names, EINA_C_ARRAY_LENGTH(atom_names), atoms);
ATM__QTOPIA_SOFT_MENU = atoms[0]; ATM__QTOPIA_SOFT_MENU = atoms[0];
ATM__QTOPIA_SOFT_MENUS = atoms[1]; ATM__QTOPIA_SOFT_MENUS = atoms[1];
ATM_GNOME_SM_PROXY = atoms[2]; ATM_GNOME_SM_PROXY = atoms[2];