diff --git a/unmanaged.cpp b/unmanaged.cpp index 2a8980a256..9c01cd5971 100644 --- a/unmanaged.cpp +++ b/unmanaged.cpp @@ -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;