Don't steal focus from windows using globally active input focus.
svn path=/branches/work/kwin_composite/; revision=612731
This commit is contained in:
parent
cdb2302ee5
commit
f4b75f439e
1 changed files with 2 additions and 9 deletions
|
@ -1278,18 +1278,11 @@ bool Workspace::setCurrentDesktop( int new_desktop )
|
||||||
|
|
||||||
if ( c )
|
if ( c )
|
||||||
requestFocus( c );
|
requestFocus( c );
|
||||||
|
else if( !desktops.isEmpty() )
|
||||||
|
requestFocus( findDesktop( true, currentDesktop()));
|
||||||
else
|
else
|
||||||
focusToNull();
|
focusToNull();
|
||||||
|
|
||||||
if( !desktops.isEmpty() )
|
|
||||||
{
|
|
||||||
Window w_tmp;
|
|
||||||
int i_tmp;
|
|
||||||
XGetInputFocus( display(), &w_tmp, &i_tmp );
|
|
||||||
if( w_tmp == null_focus_window ) // CHECKME?
|
|
||||||
requestFocus( findDesktop( true, currentDesktop()));
|
|
||||||
}
|
|
||||||
|
|
||||||
updateCurrentTopMenu();
|
updateCurrentTopMenu();
|
||||||
|
|
||||||
// Update focus chain:
|
// Update focus chain:
|
||||||
|
|
Loading…
Reference in a new issue