fix another 64-bit window property
This commit is contained in:
parent
4390fb34e0
commit
45743c6f42
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 1.0rc3:
|
Changes for 1.0rc3:
|
||||||
|
*07/01/08:
|
||||||
|
* Fix another 64-bit window property (Mark/Simon)
|
||||||
|
FbTk/FbWindow.cc
|
||||||
*07/01/07:
|
*07/01/07:
|
||||||
* Update Iconbar Mode menu when updating settings (Mark)
|
* Update Iconbar Mode menu when updating settings (Mark)
|
||||||
IconbarTool.cc
|
IconbarTool.cc
|
||||||
|
|
|
@ -553,7 +553,7 @@ long FbWindow::eventMask() const {
|
||||||
void FbWindow::setOpaque(unsigned char alpha) {
|
void FbWindow::setOpaque(unsigned char alpha) {
|
||||||
#ifdef HAVE_XRENDER
|
#ifdef HAVE_XRENDER
|
||||||
static Atom m_alphaatom = XInternAtom(display(), "_NET_WM_WINDOW_OPACITY", False);
|
static Atom m_alphaatom = XInternAtom(display(), "_NET_WM_WINDOW_OPACITY", False);
|
||||||
unsigned int opacity = alpha * 0x1010101;
|
unsigned long opacity = alpha * 0x1010101;
|
||||||
changeProperty(m_alphaatom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &opacity, 1l);
|
changeProperty(m_alphaatom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &opacity, 1l);
|
||||||
#endif // HAVE_XRENDER
|
#endif // HAVE_XRENDER
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue