diff options
author | markt <markt> | 2007-01-06 19:59:46 (GMT) |
---|---|---|
committer | markt <markt> | 2007-01-06 19:59:46 (GMT) |
commit | 4628ff76949e4542b6c93404215e0ec88889da32 (patch) | |
tree | 7aa23a1dafd6215db15a46e31d129655fd1d8e94 | |
parent | 94e2c89053325beeb9f79d2e682adf614f636ca8 (diff) | |
download | fluxbox-4628ff76949e4542b6c93404215e0ec88889da32.zip fluxbox-4628ff76949e4542b6c93404215e0ec88889da32.tar.bz2 |
set opacity properly
-rw-r--r-- | src/FbTk/FbWindow.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
553 | void FbWindow::setOpaque(unsigned char alpha) { | 553 | void FbWindow::setOpaque(unsigned char alpha) { |
554 | #ifdef HAVE_XRENDER | 554 | #ifdef HAVE_XRENDER |
555 | static Atom m_alphaatom = XInternAtom(display(), "_NET_WM_WINDOW_OPACITY", False); | 555 | static Atom m_alphaatom = XInternAtom(display(), "_NET_WM_WINDOW_OPACITY", False); |
556 | unsigned int opacity = alpha << 24; | 556 | unsigned int opacity = alpha * 0x1010101; |
557 | changeProperty(m_alphaatom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &opacity, 1l); | 557 | changeProperty(m_alphaatom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &opacity, 1l); |
558 | #endif // HAVE_XRENDER | 558 | #endif // HAVE_XRENDER |
559 | } | 559 | } |