When i try to set a windowbackground to a pixmap
with XSetWindowBackgroundPixmap it gives me an x-error and the window is

The pixmap, produced by imlib, has a 32 bit depth while
the visual i use is 24 bit depth.

Is that difference the cause of the error ?
If so...How can i get imlib to give me a 24 bits pixmap ?

If not...what could cause the error ?

The pixmap is ok when i check it with "getgeometry" and the window
is ( in one case) the rootwindow, so those are both valid.

Any thoughts or hints are welcome.