set opacity properly
markt markt
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/FbWindow.cc
→
src/FbTk/FbWindow.cc
@@ -553,7 +553,7 @@
void FbWindow::setOpaque(unsigned char alpha) { #ifdef HAVE_XRENDER static Atom m_alphaatom = XInternAtom(display(), "_NET_WM_WINDOW_OPACITY", False); - unsigned int opacity = alpha << 24; + unsigned int opacity = alpha * 0x1010101; changeProperty(m_alphaatom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &opacity, 1l); #endif // HAVE_XRENDER }