fixed a minor focus problem

svn path=/trunk/kdebase/kwin/; revision=36074
This commit is contained in:
Matthias Ettrich 1999-12-07 21:54:52 +00:00
parent 126bc26fda
commit 9764a4f487
2 changed files with 12 additions and 13 deletions

View file

@ -384,7 +384,7 @@ void StdClient::paintEvent( QPaintEvent* )
t.setRight( t.right() - 2 );
p.setPen(options->color(Options::Font, isActive()));
p.setFont(options->font(isActive()));
p.drawText( t, AlignLeft|AlignVCenter, caption() );
p.drawText( t, AlignLeft|AlignVCenter|SingleLine, caption() );
}

View file

@ -854,11 +854,10 @@ void Workspace::requestFocus( Client* c)
if ( !popup || !popup->isVisible() )
popup_client = c;
active_client = c;
if ( c->isVisible() && !c->isShade() ) {
c->takeFocus();
should_get_focus = c;
setActiveClient( c );
} else if ( c->isShade() ) {
// client cannot accept focus, but at least the window should be active (window menu, et. al. )
focusToNull();