adrian@ora.UUCP (Adrian Nye ) (03/07/88)
I am looking for examples of code using the following routines and techniques, to use in my Xlib programming manual. It doesn't need to be perfect code as long as it works more or less. I will clean it up. If you can help me out you can be sure the information will be passed on to thousands of other X programmers who will thank you profusely. I'll also send you a free copy of the revised manual. o Grabbing and XAllowEvents - an application that uses these for a useful purpose. o Regions - any example of them in use. Particularly, what do XClipBox and XSetRegion do. o Changing the hotspot of standard cursors from the cursor font. Are the hotspots in the center initially? o An extension and the Xlib code that opens the extension and uses it. Preferably one that has its own event types and/or errors. o Bit gravity in use. A window manager could select the bit gravity constant for a window according to the direction it was moved or resized by the window manager, no? Then the application itself could determine whether to redraw the whole window or just the exposed part. o Code using the X11R2 resource manager to read command line arguments, and the .Xdefaults file, and merge these with the defaults for the program. o Code implementing selection communication between two clients. o Association tables. This has been around since X10 but I've never seen an example of them in use. o Anything using the context manager. o A predicate procedure for matching events. o Formats of Addresses for XAddHost, such as IP, DECnet, etc. o Code that selects a visual using XMatchVisualInfo and/or XGetVisualInfo. Code that prefers 8 plane PsuedoColor but can deal with less colors or Black and White or GrayScale. o Code for interpreting the key_vector (one bit per key) as in Keymap events and returned by XQueryKeymap. o Code that uses the incredibly complex virtual crossing flags in FocusIn and FocusOut events, including the events on the windows between the pointer and the pointer's root window. -- Adrian Nye (617) 527-4210 O'Reilly & Associates, Inc., Publishers of Nutshell Handbooks 981 Chestnut Street, Newton, MA 02164 UUCP: uunet!ora!adrian ARPA: adrian@ora.uu.net