break when property was found, fix formatting

SVN revision: 42897
This commit is contained in:
Hannes Janetzek 2009-10-06 00:02:16 +00:00
parent a26cde7b3d
commit abdb6c1591
1 changed files with 6 additions and 4 deletions

View File

@ -383,11 +383,13 @@ check_mwm_supported(void)
if ((type_ret == XA_ATOM) &&
(format_ret == 32) &&
(num_ret && prop_ret))
{
for (i = 0; i < num_ret; i++)
if (mwm_prop == ((unsigned long*)prop_ret)[i])
(num_ret && prop_ret)) {
for (i = 0; i < num_ret; i++) {
if (mwm_prop == ((unsigned long*)prop_ret)[i]) {
supported = 1;
break;
}
}
}
if (prop_ret)
XFree(prop_ret);