mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
dunno
This commit is contained in:
18
src/dock.c
18
src/dock.c
@@ -318,8 +318,10 @@ paintClipButtons(WAppIcon *clipIcon, Bool lpushed, Bool rpushed)
|
||||
int pt = CLIP_BUTTON_SIZE*ICON_SIZE/64;
|
||||
int tp = ICON_SIZE - pt;
|
||||
int as = pt - 15; /* 15 = 5+5+5 */
|
||||
GC gc;
|
||||
GC gc = scr->clip_title_gc;
|
||||
#ifdef GRADIENT_CLIP_ARROW
|
||||
Bool collapsed = clipIcon->dock->collapsed;
|
||||
#endif
|
||||
|
||||
if (rpushed) {
|
||||
p[0].x = tp+1;
|
||||
@@ -341,14 +343,14 @@ paintClipButtons(WAppIcon *clipIcon, Bool lpushed, Bool rpushed)
|
||||
XFillPolygon(dpy, win, scr->draw_gc, p, 3, Convex, CoordModeOrigin);
|
||||
XSetForeground(dpy, scr->draw_gc, scr->black_pixel);
|
||||
}
|
||||
if (collapsed) {
|
||||
gc = scr->clip_title_gc;
|
||||
} else {
|
||||
#ifdef GRADIENT_CLIP_ARROW
|
||||
if (!collapsed) {
|
||||
XSetFillStyle(dpy, scr->copy_gc, FillTiled);
|
||||
XSetTile(dpy, scr->copy_gc, scr->clip_arrow_gradient);
|
||||
XSetClipMask(dpy, scr->copy_gc, None);
|
||||
gc = scr->copy_gc;
|
||||
}
|
||||
#endif /* GRADIENT_CLIP_ARROW */
|
||||
|
||||
p[0].x = p[3].x = ICON_SIZE-6-as;
|
||||
p[0].y = p[3].y = 5;
|
||||
@@ -360,9 +362,10 @@ paintClipButtons(WAppIcon *clipIcon, Bool lpushed, Bool rpushed)
|
||||
XFillPolygon(dpy, win, scr->draw_gc, p, 3, Convex, CoordModeOrigin);
|
||||
XDrawLines(dpy, win, scr->draw_gc, p, 4, CoordModeOrigin);
|
||||
} else {
|
||||
#ifdef GRADIENT_CLIP_ARROW
|
||||
if (!collapsed)
|
||||
XSetTSOrigin(dpy, gc, ICON_SIZE-6-as, 5);
|
||||
|
||||
#endif
|
||||
XFillPolygon(dpy, win, gc, p,3,Convex,CoordModeOrigin);
|
||||
XDrawLines(dpy, win, gc, p,4,CoordModeOrigin);
|
||||
}
|
||||
@@ -377,14 +380,17 @@ paintClipButtons(WAppIcon *clipIcon, Bool lpushed, Bool rpushed)
|
||||
XFillPolygon(dpy, win, scr->draw_gc, p, 3, Convex, CoordModeOrigin);
|
||||
XDrawLines(dpy, win, scr->draw_gc, p, 4, CoordModeOrigin);
|
||||
} else {
|
||||
#ifdef GRADIENT_CLIP_ARROW
|
||||
if (!collapsed)
|
||||
XSetTSOrigin(dpy, gc, 5, ICON_SIZE-6-as);
|
||||
|
||||
#endif
|
||||
XFillPolygon(dpy, win, gc, p,3,Convex,CoordModeOrigin);
|
||||
XDrawLines(dpy, win, gc, p,4,CoordModeOrigin);
|
||||
}
|
||||
#ifdef GRADIENT_CLIP_ARROW
|
||||
if (!collapsed)
|
||||
XSetFillStyle(dpy, scr->copy_gc, FillSolid);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user