CT: closes #38320 (I didn't manage to reproduce it though)

svn path=/trunk/kdebase/kwin/; revision=139498
This commit is contained in:
Cristian Tibirna 2002-02-28 15:41:22 +00:00
parent 883950b506
commit f13d425d59

View file

@ -2408,7 +2408,10 @@ void Client::takeFocus( bool force )
return; // menus and dock windows don't take focus if not forced
if ( input ) {
setActive( TRUE );
// Matthias Ettrich says to comment it so that we avoid two consecutive setActive
// We will have to look after it anyways, in case people will get problems
//setActive( TRUE );
// Qt may delay the mapping which may cause XSetInputFocus to fail, force show window
QApplication::sendPostedEvents( windowWrapper(), QEvent::ShowWindowRequest );
XSetInputFocus( qt_xdisplay(), win, RevertToPointerRoot, kwin_time );