CT: focus [strictly] under mouse, current active client sticky
(mouse pointer on it), preserve focus while changing desktops Thanks to Volker Schatz <V.Schatz at thphys.uni-heidelberg.de> for patch svn path=/trunk/kdebase/kwin/; revision=126219
This commit is contained in:
parent
0627a614db
commit
3bae17a9bc
1 changed files with 239 additions and 233 deletions
|
@ -2487,6 +2487,12 @@ void Workspace::setCurrentDesktop( int new_desktop ){
|
|||
}*/
|
||||
}
|
||||
|
||||
//if "unreasonable focus policy"
|
||||
// and active_client is sticky and under mouse (hence == old_active_client),
|
||||
// conserve focus (thanks to Volker Schatz <V.Schatz at thphys.uni-heidelberg.de>)
|
||||
else if( old_active_client && old_active_client->isVisible() )
|
||||
c= old_active_client;
|
||||
|
||||
if ( c ) {
|
||||
requestFocus( c );
|
||||
// don't let the panel cover fullscreen windows on desktop switches
|
||||
|
|
Loading…
Reference in a new issue