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:
Cristian Tibirna 2001-12-09 04:17:36 +00:00
parent 0627a614db
commit 3bae17a9bc

View file

@ -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