Force updating electric borders on resize change.

BUG:92583

svn path=/trunk/kdebase/kwin/; revision=359883
This commit is contained in:
Luboš Luňák 2004-11-02 15:19:01 +00:00
parent 273d07c8f6
commit 816f3bd86e
3 changed files with 6 additions and 3 deletions

View file

@ -44,7 +44,7 @@ namespace KWinInternal
void Workspace::desktopResized()
{
updateClientArea();
checkElectricBorders();
checkElectricBorders( true );
}
/*!

View file

@ -1833,8 +1833,11 @@ void Workspace::cancelDelayFocus()
// borders. Technically this is done with input only windows. Since
// electric borders can be switched on and off, we have these two
// functions to create and destroy them.
void Workspace::checkElectricBorders()
void Workspace::checkElectricBorders( bool force )
{
if( force )
destroyBorderWindows();
electric_current_border = 0;
QRect r = QApplication::desktop()->geometry();

View file

@ -412,7 +412,7 @@ class Workspace : public QObject, public KWinInterface, public KDecorationDefine
void tabBoxKeyRelease( const XKeyEvent& ev );
// electric borders
void checkElectricBorders();
void checkElectricBorders( bool force = false );
void createBorderWindows();
void destroyBorderWindows();
void electricBorder(XEvent * e);