home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / share / src / ViewKit / Applications / GLX / installcmap.c.z / installcmap.c
Encoding:
C/C++ Source or Header  |  1996-09-20  |  433 b   |  18 lines

  1. #include <X11/Intrinsic.h>
  2.  
  3. /*
  4.  * This routine will install a particular gl widgets's colormap onto the
  5.  * top level window.  It may not be called until after the windows have
  6.  * been realized.
  7.  */
  8. void
  9. installColormap(toplevel, glw)
  10. Widget toplevel, glw;
  11. {
  12.     Window windows[2];
  13.  
  14.     windows[0] = XtWindow(glw);
  15.     windows[1] = XtWindow(toplevel);
  16.     XSetWMColormapWindows(XtDisplay(toplevel), XtWindow(toplevel), windows, 2);
  17. }
  18.