Simplify activeScreen() code, from Hans Meine <meine@informatik.uni-hamburg.de>.
svn path=/trunk/KDE/kdebase/workspace/; revision=852322
This commit is contained in:
parent
85fd06103f
commit
53f5283601
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue