all repos — fluxbox @ ca307efe3e719fbc3917ae54af4e2243ae0e4044

custom fork of the fluxbox windowmanager

handling of alpha = 0
rathnor rathnor
commit

ca307efe3e719fbc3917ae54af4e2243ae0e4044

parent

0cab1dfb3dbe5938f8b9d1b0050cbd9348c4e715

2 files changed, 7 insertions(+), 4 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,8 @@

(Format: Year/Month/Day) Changes for 0.9.10: +*04/05/24: + * Fix handling alpha value of zero (Simon) + FbWindow.cc *04/05/21: * fluxbox-generate_menu: Updated polish locales from: Łukasz Wrzosek (unl at poczta dot fm)
M src/FbTk/FbWindow.ccsrc/FbTk/FbWindow.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.cc,v 1.33 2004/05/17 15:01:32 rathnor Exp $ +// $Id: FbWindow.cc,v 1.34 2004/05/24 13:09:32 rathnor Exp $ #include "FbWindow.hh"

@@ -240,11 +240,11 @@ }

void FbWindow::setAlpha(unsigned char alpha) { #ifdef HAVE_XRENDER - if (m_transparent.get() == 0 && alpha != 0) { + if (m_transparent.get() == 0 && alpha < 255) { m_transparent.reset(new Transparent(getRootPixmap(screenNumber()), window(), alpha, screenNumber())); - } else if (alpha != 0 && alpha != m_transparent->alpha()) + } else if (alpha < 255 && alpha != m_transparent->alpha()) m_transparent->setAlpha(alpha); - else if (alpha == 0) + else if (alpha == 255) m_transparent.reset(0); // destroy transparent object #endif // HAVE_XRENDER }