|
|
@ -595,7 +595,7 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
|
|
|
|
x = dc.x + (h / 2);
|
|
|
|
x = dc.x + (h / 2);
|
|
|
|
/* shorten text if necessary */
|
|
|
|
/* shorten text if necessary */
|
|
|
|
for(; len && (w = textnw(buf, len)) > dc.w - h; len--);
|
|
|
|
for(; len && (w = textnw(buf, len)) > dc.w - h; len--);
|
|
|
|
if (!len)
|
|
|
|
if(!len)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
if(len < olen) {
|
|
|
|
if(len < olen) {
|
|
|
|
if(len > 1)
|
|
|
|
if(len > 1)
|
|
|
@ -1704,7 +1704,6 @@ unmapnotify(XEvent *e) {
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
updatebar(void) {
|
|
|
|
updatebar(void) {
|
|
|
|
|
|
|
|
|
|
|
|
if(dc.drawable != 0)
|
|
|
|
if(dc.drawable != 0)
|
|
|
|
XFreePixmap(dpy, dc.drawable);
|
|
|
|
XFreePixmap(dpy, dc.drawable);
|
|
|
|
dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
|
|
|
|
dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
|
|
|
|