apparently this was too hard to read for k-s ;)

SVN revision: 55742
This commit is contained in:
Mike Blumenkrantz 2010-12-23 18:06:43 +00:00
parent 74782f2e5c
commit fcfdf2a6f6
1 changed files with 2 additions and 2 deletions

View File

@ -1436,10 +1436,10 @@ e_hints_window_e_state_get(E_Border *bd)
memset(state, 0, sizeof(state));
num = ecore_x_window_prop_card32_get(bd->client.win, E_ATOM_WINDOW_STATE,
state, sizeof(state) / sizeof(Ecore_X_Atom)); /* ugly, but avoids possible future overflow if more states are added */
state, sizeof(state) / sizeof(state[0])); /* ugly, but avoids possible future overflow if more states are added */
if (!num) return;
for (i = 0; (i < num) && (i < sizeof(state) / sizeof(Ecore_X_Atom)); i++)
for (i = 0; (i < num) && (i < sizeof(state) / sizeof(state[0])); i++)
{
if (state[i] == E_ATOM_WINDOW_STATE_CENTERED)
bd->client.e.state.centered = 1;