Until blackbox 0.70 it was possible for a slit
application to use ParentRelative as background pixmap
to let the slit shine through. This was especially
needed when some image should be merged with the slit;
for example the transparent edges of PNG images (for
example done by bbdock; http://bbdock.nethence.com\).
Because of design changes in 0.70, this was no longer
possible because the slit no longer sets a background
pixmap that a dock app can inherit.
You may insert the following code after line 250 into
Slit.cc to fix this problem (or just use the attached
Slit.cc):
+ if ((texture.texture() & bt::Texture::Gradient) &&
frame.pixmap)
+ XSetWindowBackgroundPixmap(display, frame.window,
frame.pixmap);
+ else if ((texture.texture() & bt::Texture::Solid))
+ XSetWindowBackground(display, frame.window,
+ texture.color1().pixel(screen->screenNumber()));
This is a first guess, there may be a better way or
place to it. Any opinions ?
Slit.cc patched to behave like in 0.65