Make KWinModule::activeWindowChanged() emit with 0 when there's no window

active - no need to try to focus windows that don't accept it anyway unless
forced to.

svn path=/trunk/kdebase/kwin/; revision=96046
icc-effect-5.14.5
Luboš Luňák 2001-05-09 20:06:46 +00:00
parent c9a23c369a
commit 1034a53451
1 changed files with 4 additions and 3 deletions

View File

@ -2006,7 +2006,8 @@ void Workspace::focusToNull(){
XMapWindow(qt_xdisplay(), null_focus_window);
}
XSetInputFocus(qt_xdisplay(), null_focus_window, RevertToPointerRoot, kwin_time );
updateColormap();
if( !block_focus )
setActiveClient( NULL );
}
@ -2192,7 +2193,7 @@ void Workspace::setCurrentDesktop( int new_desktop ){
}
}
if (!c) {
/* if (!c) { // this is useless - these windows don't accept focus
// Search top-most visible window
for ( ClientList::ConstIterator it = stacking_order.fromLast(); it != stacking_order.end(); --it) {
if ( (*it)->isVisible() ) {
@ -2200,7 +2201,7 @@ void Workspace::setCurrentDesktop( int new_desktop ){
break;
}
}
}
}*/
}
if ( c ) {