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

List:       kde-devel
Subject:    KWin setShade(): off by one in windows height
From:       Michael Matz <matz () ifh ! de>
Date:       2000-04-04 14:08:40
[Download RAW message or body]

Hi,

I'm not too sure how to solve, but try to repeatedly to shade/unshade a
window. Each time it's unshaded its height is one pixel larger. (I tried
all clients)

This happen in client.cpp:setShade() around line 1444:

   resize ( s );
   windowWrapper()->show();

// let H  ==windowWrapper()->height();
   layout()->activate();
// let H1 ==windowWrapper()->height();
   repaint();

Here H1==H+1. I tried to follow the error, but I don't have a debugable 
qt. So if anybody know's a solution (other than 
resize(s.width(), s.height()?s.height()-1:0); ) ...


Ciao,
Michael.

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

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