Don't activate cube if there are less than two desktops.
BUG: 177714 svn path=/trunk/KDE/kdebase/workspace/; revision=896698
This commit is contained in:
parent
94fd94aac1
commit
6ff3a4134b
1 changed files with 2 additions and 1 deletions
|
@ -1325,7 +1325,8 @@ bool CubeEffect::borderActivated( ElectricBorder border )
|
|||
|
||||
void CubeEffect::toggle()
|
||||
{
|
||||
if( effects->activeFullScreenEffect() && effects->activeFullScreenEffect() != this )
|
||||
if( effects->activeFullScreenEffect() && effects->activeFullScreenEffect() != this ||
|
||||
effects->numberOfDesktops() < 2 )
|
||||
return;
|
||||
if( !activated )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue