There's a race condition between getting window XIDs and accessing them. BadWindow would result if an window being checked has been destroyed.
There's a race condition between getting window XIDs and accessing them.
BadWindow would result if an window being checked has been destroyed.