Hey guys, I'm going to implement setting the WM_CLASS hints for Linux, to take care of this issue: https://bitbucket.org/pyglet/pyglet/issues/92/wm_class-cannot-be-set-for-application This is a necessity these days, since modern DEs and window managers expect it. Under Gnome, for example, Firefox shows the name "Firefox" in the main menu (this is the WM_CLASS), while it shows the current web page in the window caption. In pyglet you can set the window caption, but the application always shows as "Unknown" in the main menu since the WM_CLASS hints are not set.
Unlike the window caption, the WM_CLASS name/type is limited to ascii characters only. I think there are also some limitations in the spec for -when- you are allow to change it, so it's probably best to set it at start-up time only. My current thoughts are: * If no window caption is set, just default the WM_CLASS name/type to "pyglet". Pyglet defaults the window caption to the application file name in this case. * If a window caption is set, use the same name. If the window caption contains non-ascii characters, fall back to "pyglet". Does this sound reasonable? -Ben -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
