remove skip_taskbar windows from the focus chain after manage
svn path=/trunk/kdebase/kwin/; revision=140616
This commit is contained in:
parent
186b4b54ac
commit
3038d6f96b
1 changed files with 6 additions and 2 deletions
|
@ -436,7 +436,8 @@ void Workspace::init()
|
||||||
Client* c = clientFactory( wins[i] );
|
Client* c = clientFactory( wins[i] );
|
||||||
addClient( c );
|
addClient( c );
|
||||||
c->manage( TRUE );
|
c->manage( TRUE );
|
||||||
|
if ( !c->wantsTabFocus() )
|
||||||
|
focus_chain.remove( c );
|
||||||
if ( root != qt_xrootwin() ) {
|
if ( root != qt_xrootwin() ) {
|
||||||
// TODO may use QWidget:.create
|
// TODO may use QWidget:.create
|
||||||
XReparentWindow( qt_xdisplay(), c->winId(), root, 0, 0 );
|
XReparentWindow( qt_xdisplay(), c->winId(), root, 0, 0 );
|
||||||
|
@ -595,7 +596,10 @@ bool Workspace::workspaceEvent( XEvent * e )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( c ) {
|
if ( c ) {
|
||||||
return c->windowEvent( e );
|
bool b = c->windowEvent( e );
|
||||||
|
if ( !c->wantsTabFocus() )
|
||||||
|
focus_chain.remove( c );
|
||||||
|
return b;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
|
|
Loading…
Reference in a new issue