bar.c
changeset 22 bd3a44353916
parent 16 359b6e563b95
child 26 e8f627998d6f
equal deleted inserted replaced
21:3ef108a5ca0a 22:bd3a44353916
    13 	draw(dpy, &brush, False, NULL);
    13 	draw(dpy, &brush, False, NULL);
    14 
    14 
    15 	if(stack) {
    15 	if(stack) {
    16 		brush.rect.width = textwidth(&brush.font, stack->name) + labelheight(&brush.font);
    16 		brush.rect.width = textwidth(&brush.font, stack->name) + labelheight(&brush.font);
    17 		swap((void **)&brush.fg, (void **)&brush.bg);
    17 		swap((void **)&brush.fg, (void **)&brush.bg);
    18 		draw(dpy, &brush, False, stack->name);
    18 		draw(dpy, &brush, True, stack->name);
    19 		swap((void **)&brush.fg, (void **)&brush.bg);
    19 		swap((void **)&brush.fg, (void **)&brush.bg);
    20 		brush.rect.x += brush.rect.width;
    20 		brush.rect.x += brush.rect.width;
    21 	}
    21 	}
    22 
    22 
    23 	brush.rect.width = textwidth(&brush.font, statustext) + labelheight(&brush.font);
    23 	brush.rect.width = textwidth(&brush.font, statustext) + labelheight(&brush.font);