Force updating electric borders on resize change.
BUG:92583 svn path=/trunk/kdebase/kwin/; revision=359883
This commit is contained in:
parent
273d07c8f6
commit
816f3bd86e
3 changed files with 6 additions and 3 deletions
|
@ -44,7 +44,7 @@ namespace KWinInternal
|
|||
void Workspace::desktopResized()
|
||||
{
|
||||
updateClientArea();
|
||||
checkElectricBorders();
|
||||
checkElectricBorders( true );
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue