WMaker: rationalised the use of flags for window icons in the switchpanel
commit9f8363dc14eab89b7591e7160531cd4ab22d9ccc
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 9 May 2014 19:29:10 +0000 (9 21:29 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 9 May 2014 19:44:38 +0000 (9 20:44 +0100)
tree072b997ce49ba9daa8a457056e2b6770c090789f
parent51ad8b7dc1e9299c58675b650ccb17ab625fa0f2
WMaker: rationalised the use of flags for window icons in the switchpanel

The flags were stored as 'char' but it is more logical to use int which is
"the natural size for integer on the host" and may help future evolution
if new flags are added;

The array is created with an initial size consistent with the number of
element we feed it with in 'makeWindowFlagsArray', this avoids a bunch
of realloc;

Fixed the type conversion that was not right, as pointed by clang.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/switchpanel.c