From 4628ff76949e4542b6c93404215e0ec88889da32 Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 6 Jan 2007 19:59:46 +0000 Subject: set opacity properly --- src/FbTk/FbWindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 2bf96f6..4145b29 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc @@ -553,7 +553,7 @@ long FbWindow::eventMask() const { 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 } -- cgit v0.11.2