Fix WM_CLASS and WM_WINDOW_ROLE properties