mirror of
https://github.com/0intro/wmii
synced 2024-12-16 16:42:38 +03:00
small change in blitz
This commit is contained in:
parent
8ed8e54507
commit
09d3389d95
@ -25,7 +25,6 @@ typedef struct {
|
||||
Drawable drawable;
|
||||
GC gc;
|
||||
Color color;
|
||||
Align align;
|
||||
XFontStruct *font;
|
||||
XRectangle rect; /* relative rect */
|
||||
XRectangle *notch; /* relative notch rect */
|
||||
|
@ -125,17 +125,7 @@ draw_text(Display * dpy, Draw * d)
|
||||
if (len > 1)
|
||||
text[len - 1] = '.';
|
||||
}
|
||||
switch (d->align) {
|
||||
case WEST:
|
||||
x = d->rect.x + h / 2;
|
||||
break;
|
||||
case EAST:
|
||||
x = d->rect.x + d->rect.width - (h / 2 + w);
|
||||
break;
|
||||
default: /* CENTER */
|
||||
x = d->rect.x + (d->rect.width - w) / 2;
|
||||
break;
|
||||
}
|
||||
x = d->rect.x + h / 2;
|
||||
|
||||
XSetBackground(dpy, d->gc, d->color.bg);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user