[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 153704] 100%, 90% and 75% values in opacity menu don't work
From:       Troy Unrau <troy () kde ! org>
Date:       2008-04-24 20:50:26
Message-ID: 20080424205026.22394.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=153704         




------- Additional Comments From troy kde org  2008-04-24 22:50 -------
with the help of a few people on irc, it appears this bug from from \
kdelibs/kdeui/windowmanagement/netwm.cpp in  

void NETWinInfo::setOpacity(unsigned long opacity) {
//    if (p->role != Client) return;

    p->opacity = opacity;
    XChangeProperty(p->display, p->window, net_wm_window_opacity, XA_CARDINAL, 32,
        PropModeReplace, reinterpret_cast< unsigned char* >( &p->opacity ), 1);

The argument coming in for opacity is an unsigned long, and this is okay, however it \
appears as though XChangeProperty cannot handle input longer than 32bits... on amd64, \
the size of opacity is 64bits.

See http://tronche.com/gui/x/xlib/window-information/XChangeProperty.html for some \
details.

It may be simple enough to just recast opacity into 32bits somehow, but one attempt \
to patch this myself failed.  My C++-fu is just too lacking.

Cheers folks


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic