Ok, to further track this down, I added a new print much earlier in the process. This is the absolute earliest that blackbox is aware of the window and 100% could have done nothing to affect it. No X calls have been made on the client's behalf at this point.
Apply it on top of the previous patch or without it, they are independent.
verbose2.patch
Description: verbose2.patch