From 3038d6f96b3b9b922d67f4923afd6458c3dc85fe Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Sun, 3 Mar 2002 16:56:41 +0000 Subject: [PATCH] remove skip_taskbar windows from the focus chain after manage svn path=/trunk/kdebase/kwin/; revision=140616 --- workspace.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index baf50282c7..2f57ce6613 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -436,7 +436,8 @@ void Workspace::init() Client* c = clientFactory( wins[i] ); addClient( c ); c->manage( TRUE ); - + if ( !c->wantsTabFocus() ) + focus_chain.remove( c ); if ( root != qt_xrootwin() ) { // TODO may use QWidget:.create XReparentWindow( qt_xdisplay(), c->winId(), root, 0, 0 ); @@ -595,7 +596,10 @@ bool Workspace::workspaceEvent( XEvent * e ) } } if ( c ) { - return c->windowEvent( e ); + bool b = c->windowEvent( e ); + if ( !c->wantsTabFocus() ) + focus_chain.remove( c ); + return b; } break; case EnterNotify: