yet another minor focus fix ;-)

svn path=/trunk/kdebase/kwin/; revision=36075
icc-effect-5.14.5
Matthias Ettrich 1999-12-07 22:04:07 +00:00
parent 9764a4f487
commit 167fc3df88
1 changed files with 3 additions and 1 deletions

View File

@ -857,7 +857,9 @@ void Workspace::requestFocus( Client* c)
if ( c->isVisible() && !c->isShade() ) {
c->takeFocus();
should_get_focus = c;
setActiveClient( c );
focus_chain.remove( c );
if ( c->wantsTabFocus() )
focus_chain.append( c );
} else if ( c->isShade() ) {
// client cannot accept focus, but at least the window should be active (window menu, et. al. )
focusToNull();