From 579f174e6355f075bde5735833939f72408b55ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 8 Jan 2007 16:54:32 +0000 Subject: [PATCH] Make sure to track only mapped override-redirect windows. svn path=/branches/work/kwin_composite/; revision=621333 --- unmanaged.cpp | 2 +- workspace.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unmanaged.cpp b/unmanaged.cpp index 546079adc6..7f9a6f324c 100644 --- a/unmanaged.cpp +++ b/unmanaged.cpp @@ -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; diff --git a/workspace.cpp b/workspace.cpp index 3da096436e..34f9d72756 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -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; }