From 45743c6f42aa50548141dad7a050a6150200b22a Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 8 Jan 2007 21:12:47 +0000 Subject: fix another 64-bit window property --- ChangeLog | 3 +++ src/FbTk/FbWindow.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a027add..3c6160e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0rc3: +*07/01/08: + * Fix another 64-bit window property (Mark/Simon) + FbTk/FbWindow.cc *07/01/07: * Update Iconbar Mode menu when updating settings (Mark) IconbarTool.cc diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 4145b29..926abfd 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 * 0x1010101; + unsigned long opacity = alpha * 0x1010101; changeProperty(m_alphaatom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &opacity, 1l); #endif // HAVE_XRENDER } -- cgit v0.11.2