More precise handling of windows, now we're only missing menu shadows