Don't change input mask of all unmanaged windows.

svn path=/branches/work/kwin_composite/; revision=620291
icc-effect-5.14.5
Luboš Luňák 2007-01-05 16:02:51 +00:00
parent f8d7a5ec25
commit 2cbf4bb1c2
1 changed files with 1 additions and 1 deletions

View File

@ -30,13 +30,13 @@ Unmanaged::~Unmanaged()
bool Unmanaged::track( Window w )
{
XSelectInput( display(), w, StructureNotifyMask );
XWindowAttributes attr;
if( !XGetWindowAttributes(display(), w, &attr))
return false;
if( attr.c_class == InputOnly )
return false;
setHandle( w );
XSelectInput( display(), w, StructureNotifyMask );
geom = QRect( attr.x, attr.y, attr.width, attr.height );
vis = attr.visual;
bit_depth = attr.depth;