Make sure WM_CLASS/PROTOCOLS properties are set before window is mapped