mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
small fix in wtest
This commit is contained in:
@@ -337,6 +337,9 @@ testGradientButtons(WMScreen *scr)
|
||||
WMSetWindowTitle(win, "Gradiented Button Demo");
|
||||
WMResizeWidget(win, 300, 200);
|
||||
|
||||
WMSetWindowCloseAction(win, closeAction, NULL);
|
||||
|
||||
|
||||
light.red = 0x90;
|
||||
light.green = 0x85;
|
||||
light.blue = 0x90;
|
||||
|
||||
@@ -660,7 +660,7 @@ drawTab(TabView *tPtr, Drawable d, int x, int y,
|
||||
XDrawLine(dpy, d, white, trap[1].x, trap[1].y, trap[2].x, trap[2].y);
|
||||
XDrawLine(dpy, d, white, trap[2].x, trap[2].y, trap[3].x, trap[3].y);
|
||||
XDrawLine(dpy, d, white, trap[3].x, trap[3].y, trap[4].x, trap[4].y);
|
||||
XDrawLine(dpy, d, dark, trap[4].x, trap[4].y, trap[5].x, trap[5].y);
|
||||
XDrawLine(dpy, d, dark, trap[4].x, trap[4].y, trap[5].x, trap[5].y);
|
||||
XDrawLine(dpy, d, black, trap[5].x, trap[5].y, trap[6].x, trap[6].y);
|
||||
XDrawLine(dpy, d, black, trap[6].x, trap[6].y, trap[7].x, trap[7].y);
|
||||
|
||||
|
||||
@@ -1305,13 +1305,15 @@ wClipIconPaint(WAppIcon *aicon)
|
||||
tx = CLIP_BUTTON_SIZE*ICON_SIZE/64;
|
||||
|
||||
WMDrawString(scr->wmscreen, win, gc, scr->clip_title_font, tx,
|
||||
ty, ws_name, length);
|
||||
ty, ws_name, length);
|
||||
/*WMDrawString(scr->wmscreen, win, gc, scr->clip_title_font, 4,
|
||||
2, ws_name, length);*/
|
||||
|
||||
tx = (ICON_SIZE/2 - WMWidthOfString(scr->clip_title_font, ws_number,
|
||||
nlength))/2;
|
||||
|
||||
WMDrawString(scr->wmscreen, win, gc, scr->clip_title_font, tx,
|
||||
2, ws_number, nlength);
|
||||
2, ws_number, nlength);
|
||||
|
||||
wfree(ws_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user