home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_10 / 9n10104a < prev    next >
Text File  |  1991-07-24  |  470b  |  25 lines

  1.     #include  <X11/Xlib.h>
  2.     #include  <X11/extensions/shape.h>
  3.  
  4.     Display    *display;
  5.     int        shape_status;
  6.     int        major_version, minor_version;
  7.  
  8.     /* Open display connection... */
  9.  
  10.     /*
  11.      * Check if we have the SHAPE extension
  12.      */
  13.     shape_status = XShapeQueryVersion( display, 
  14.                     &major_version,
  15.                     &minor_version );
  16.  
  17.     if( shape_status != 0 )
  18.         {
  19.         printf( "SHAPE extension supported ver.%d.%d\n",
  20.             major_version, minor_version );
  21.  
  22.         /* ... */
  23.         }
  24.  
  25.