ellis@cadillac.siemens.COM (Ellis Cohen) (12/16/87)
A new version of yow.c is available in /contrib/YOW on zap.mit.edu Some bogosities present in the earlier posted version have been fixed. yow.c is an example application similar to "Hello World", but quite a bit longer because of additional features and additional issues addressed. Most of the code is application independent and can easily be reused or adapted. The notes describe some of the trickier interactions with X and with window managers that the application writer should keep in mind. yow sets WM_CLASS, a matter which has been discussed again on this newsgroup recently. It sets the resource_class field to be the application name. The resource_name field is set based on a "-r" argument on the command line, or else a RESOURCE_NAME environment variable, or else argv[0] While there is no standard, this means of setting WM_CLASS has in our experience worked well in practice, and has been based on conversations with a variety of application writers in and out of our labs. More discussion can be found in yow.c. yow.c also allows for the automatic setting of WM_NAME and WM_ICON_NAME based on WM_CLASS. It also shows how to write your application so that it will work in the future with nested window managers (i.e. window managers that take over a window other than root). Mark Biggers Ellis Cohen Siemens RTL Tiled Window Project 105 College Rd East Princeton NJ 08540 (609) 734-6524