I appreciate you looking at this and provide helpful links. On Linux, missing WM_CLASS can undoubtedly lead to problems with desktop integration and window managers flash games. The remarks on memory cleaning and patch placement are really useful for anyone looking at this more, and your recommended method using XClassHint looks logical.