Window class now gets generated with mode=global annotation argument