sync
This commit is contained in:
parent
50c8bafd9f
commit
ac06c97e30
820 changed files with 467502 additions and 386453 deletions
|
@ -8,7 +8,7 @@
|
|||
* Copyright 1993, Robert Nation. No guarantees or warantees or anything
|
||||
* are provided or implied in any way whatsoever. Use this program at your
|
||||
* own risk. Permission to use this program for any purpose is given,
|
||||
* as long as the copyright is kept intact.
|
||||
* as long as the copyright is kept intact.
|
||||
|
||||
*/
|
||||
/***********************************************************************
|
||||
|
@ -93,22 +93,22 @@ void CreateIconWindow(button_info *b)
|
|||
XGCValues gcv;
|
||||
unsigned long gcm=0;
|
||||
Pixmap temp;
|
||||
|
||||
|
||||
gcm = GCForeground | GCBackground;
|
||||
gcv.background=buttonBack(b);
|
||||
gcv.foreground=buttonFore(b);
|
||||
XChangeGC(Dpy,NormalGC,gcm,&gcv);
|
||||
|
||||
|
||||
#ifdef SHAPE
|
||||
XShapeCombineMask(Dpy,b->IconWin,ShapeBounding,0,0,
|
||||
b->icon->picture,ShapeSet);
|
||||
#endif
|
||||
|
||||
|
||||
temp = XCreatePixmap(Dpy,Root,b->icon->width,
|
||||
b->icon->height,d_depth);
|
||||
XCopyPlane(Dpy,b->icon->picture,temp,NormalGC,
|
||||
0,0,b->icon->width,b->icon->height,0,0,1);
|
||||
|
||||
|
||||
XSetWindowBackgroundPixmap(Dpy,b->IconWin,temp);
|
||||
XFreePixmap(Dpy,temp);
|
||||
/* We won't use the icon pixmap anymore... but we still need it for
|
||||
|
@ -177,7 +177,7 @@ void ConfigureIconWindow(button_info *b)
|
|||
yoff=(BH-(h+font->ascent+font->descent))>>1;
|
||||
else
|
||||
yoff=(BH-h)>>1;
|
||||
|
||||
|
||||
if(xoff < framew+xpad)
|
||||
xoff = framew+xpad;
|
||||
if(yoff < framew+ypad)
|
||||
|
@ -188,7 +188,7 @@ void ConfigureIconWindow(button_info *b)
|
|||
|
||||
XMoveResizeWindow(Dpy, b->IconWin, x,y,w,h);
|
||||
|
||||
/* Doesn't this belong above?
|
||||
/* Doesn't this belong above?
|
||||
#ifdef XPM
|
||||
#ifdef SHAPE
|
||||
if (b->icon->mask!=None)
|
||||
|
@ -205,5 +205,5 @@ void ConfigureIconWindow(button_info *b)
|
|||
XSetWindowBackgroundPixmap(Dpy,b->IconWin,b->icon->picture);
|
||||
*/
|
||||
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue