Make sure to track only mapped override-redirect windows.

svn path=/branches/work/kwin_composite/; revision=621333
This commit is contained in:
Luboš Luňák 2007-01-08 16:54:32 +00:00
parent 3a58fc2ea3
commit 579f174e63
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ bool Unmanaged::track( Window w )
{
XWindowAttributes attr;
grabXServer();
if( !XGetWindowAttributes(display(), w, &attr))
if( !XGetWindowAttributes(display(), w, &attr) || attr.map_state != IsViewable )
{
ungrabXServer();
return false;

View file

@ -370,7 +370,7 @@ void Workspace::init()
XGetWindowAttributes(display(), wins[i], &attr);
if (attr.override_redirect )
{
if( attr.map_state != IsUnmapped && attr.c_class != InputOnly && compositing())
if( compositing())
createUnmanaged( wins[ i ] );
continue;
}