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:
parent
c9a23c369a
commit
1034a53451
1 changed files with 4 additions and 3 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue