set opacity properly
This commit is contained in:
parent
94e2c89053
commit
4628ff7694
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue