CT: closes #38320 (I didn't manage to reproduce it though)
svn path=/trunk/kdebase/kwin/; revision=139498
This commit is contained in:
parent
883950b506
commit
f13d425d59
1 changed files with 4 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue