mirror of
https://git.suckless.org/dwm
synced 2024-12-27 03:16:32 +00:00
applied nsz's style.diff patch
This commit is contained in:
parent
6b79f3f326
commit
d7cc0f6416
1 changed files with 13 additions and 14 deletions
3
dwm.c
3
dwm.c
|
@ -595,7 +595,7 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
|
|||
x = dc.x + (h / 2);
|
||||
/* shorten text if necessary */
|
||||
for(; len && (w = textnw(buf, len)) > dc.w - h; len--);
|
||||
if (!len)
|
||||
if(!len)
|
||||
return;
|
||||
if(len < olen) {
|
||||
if(len > 1)
|
||||
|
@ -1704,7 +1704,6 @@ unmapnotify(XEvent *e) {
|
|||
|
||||
void
|
||||
updatebar(void) {
|
||||
|
||||
if(dc.drawable != 0)
|
||||
XFreePixmap(dpy, dc.drawable);
|
||||
dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
|
||||
|
|
Loading…
Reference in a new issue