Simplify activeScreen() code, from Hans Meine <meine@informatik.uni-hamburg.de>.

svn path=/trunk/KDE/kdebase/workspace/; revision=852322
This commit is contained in:
Luboš Luňák 2008-08-25 19:02:22 +00:00
parent 85fd06103f
commit 53f5283601

View file

@ -1652,7 +1652,7 @@ int Workspace::activeScreen() const
if( !options->activeMouseScreen )
{
if( activeClient() != NULL && !activeClient()->isOnScreen( active_screen ))
return qApp->desktop()->screenNumber( activeClient()->geometry().center());
return activeClient()->screen();
return active_screen;
}
return qApp->desktop()->screenNumber( cursorPos());