window-x11: Fix silly regression

First we figure out the window type, then we ignore it - ouch.