yet another minor focus fix ;-)

svn path=/trunk/kdebase/kwin/; revision=36075
This commit is contained in:
Matthias Ettrich 1999-12-07 22:04:07 +00:00
parent 9764a4f487
commit 167fc3df88

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();