WM_CLASS purpose?
Glynn Clements
glynn at gclements.plus.com
Tue Oct 30 09:43:05 PDT 2012
Vladimir A. Pavlov wrote:
> > > For example, let's suppose I have a window manager
> > > somebox that has taskbar, dock, menus for starting
> > > applications/switching workspaces and configuration dialogs.
> > > What should be res_name/res_class for each of them?
> >
> > An X client should have a single name and class. You shouldn't use
> > different values for different windows within a single client
> > (however, it's possible for a single process to contain multiple
> > clients by calling XtOpenApplication() multiple times; each "client"
> > has a separate X connection and XtAppContext).
>
> So, if _you_ write a window manager "somebox" what values would
> you use for res_name and res_class in the above example?
The default class would be "SomeBox" while the default name would be
the base name (everything after the last "/") of argv[0], which would
typically be "somebox". These could be overridden by the -class and
-name switches respectively.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the xorg
mailing list