Don't track InputOnly windows.

svn path=/branches/work/kwin_composite/; revision=560591
This commit is contained in:
Luboš Luňák 2006-07-10 18:20:25 +00:00
parent 4999a83118
commit 64bf5bc51e
2 changed files with 3 additions and 1 deletions

View file

@ -32,6 +32,8 @@ bool Unmanaged::track( Window w )
XWindowAttributes attr;
if( !XGetWindowAttributes(display(), w, &attr))
return false;
if( attr.c_class == InputOnly )
return false;
setHandle( w );
geom = QRect( attr.x, attr.y, attr.width, attr.height );
vis = attr.visual;

View file

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