ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/x11image.c
(Generate patch)

Comparing ray/src/px/x11image.c (file contents):
Revision 1.14 by greg, Thu Apr 18 14:35:49 1991 UTC vs.
Revision 1.15 by greg, Fri Apr 19 14:59:14 1991 UTC

# Line 30 | Line 30 | static char SCCSid[] = "$SunId$ LBL";
30   #include  "pic.h"
31   #include  "x11raster.h"
32   #include  "random.h"
33 + #include  "x11icon.h"
34  
35   #define  FONTNAME       "8x13"          /* text font we'll use */
36  
# Line 204 | Line 205 | char  *s;
205  
206   init()                  /* get data and open window */
207   {
208 +        XWMHints        ourxwmhints;
209          XSetWindowAttributes    ourwinattr;
210          XSizeHints  oursizhints;
211          register int  i;
# Line 266 | Line 268 | init()                 /* get data and open window */
268                  }
269                  XSetNormalHints(thedisplay, wind, &oursizhints);
270          }
271 +        ourxwmhints.flags = InputHint|IconPixmapHint;
272 +        ourxwmhints.input = True;
273 +        ourxwmhints.icon_pixmap = XCreateBitmapFromData(thedisplay,
274 +                        wind, x11icon_bits, x11icon_width, x11icon_height);
275 +        XSetWMHints(thedisplay, wind, &ourxwmhints);
276          XSelectInput(thedisplay, wind, ButtonPressMask|ButtonReleaseMask
277                          |ButtonMotionMask|StructureNotifyMask
278                          |KeyPressMask|ExposureMask);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines