[Bug 678] BadWindow in XChangeWindowAttributes