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
This commit is contained in:
Luboš Luňák 2001-05-09 20:06:46 +00:00
parent c9a23c369a
commit 1034a53451

View file

@ -2006,7 +2006,8 @@ void Workspace::focusToNull(){
XMapWindow(qt_xdisplay(), null_focus_window); XMapWindow(qt_xdisplay(), null_focus_window);
} }
XSetInputFocus(qt_xdisplay(), null_focus_window, RevertToPointerRoot, kwin_time ); 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 // Search top-most visible window
for ( ClientList::ConstIterator it = stacking_order.fromLast(); it != stacking_order.end(); --it) { for ( ClientList::ConstIterator it = stacking_order.fromLast(); it != stacking_order.end(); --it) {
if ( (*it)->isVisible() ) { if ( (*it)->isVisible() ) {
@ -2200,7 +2201,7 @@ void Workspace::setCurrentDesktop( int new_desktop ){
break; break;
} }
} }
} }*/
} }
if ( c ) { if ( c ) {