all repos — fluxbox @ 4628ff76949e4542b6c93404215e0ec88889da32

custom fork of the fluxbox windowmanager

set opacity properly
markt markt
commit

4628ff76949e4542b6c93404215e0ec88889da32

parent

94e2c89053325beeb9f79d2e682adf614f636ca8

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/FbTk/FbWindow.ccsrc/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 }