Fix out-of-bounds array access when increasing screen count with randr1.2.
BUG: 163045 svn path=/branches/KDE/4.1/kdebase/workspace/; revision=839193
This commit is contained in:
parent
68110d05fb
commit
62140fa26b
1 changed files with 3 additions and 1 deletions
|
@ -175,8 +175,10 @@ void Workspace::updateClientArea( bool force )
|
||||||
{
|
{
|
||||||
if( workarea[ i ] != new_wareas[ i ] )
|
if( workarea[ i ] != new_wareas[ i ] )
|
||||||
changed = true;
|
changed = true;
|
||||||
|
if( screenarea[ i ].size() != new_sareas[ i ].size())
|
||||||
|
changed = true;
|
||||||
for( int iS = 0;
|
for( int iS = 0;
|
||||||
iS < nscreens;
|
!changed && iS < nscreens;
|
||||||
iS ++ )
|
iS ++ )
|
||||||
if (new_sareas[ i ][ iS ] != screenarea [ i ][ iS ])
|
if (new_sareas[ i ][ iS ] != screenarea [ i ][ iS ])
|
||||||
changed = true;
|
changed = true;
|
||||||
|
|
Loading…
Reference in a new issue