fix one small thing with last commit
This commit is contained in:
parent
c92d21c5c3
commit
b84494043f
1
TODO
1
TODO
|
@ -1,5 +1,4 @@
|
||||||
# TODO for spmenu
|
# TODO for spmenu
|
||||||
|
|
||||||
- Mouse bind array (mouse.h)
|
- Mouse bind array (mouse.h)
|
||||||
- Remove SGR sequences from width when item text is drawn, currently the width of the item before SGR sequences are used, resulting in some ugly behavior for the selected item (drawitem function libs/draw.c)
|
|
||||||
- Add configuration file using (probably) libconfig
|
- Add configuration file using (probably) libconfig
|
||||||
|
|
|
@ -66,7 +66,7 @@ drawitem(struct item *item, int x, int y, int w)
|
||||||
buffer[wr] = '\0'; /* clear out character */
|
buffer[wr] = '\0'; /* clear out character */
|
||||||
|
|
||||||
apply_fribidi(buffer);
|
apply_fribidi(buffer);
|
||||||
rw = TEXTW(buffer) - lrpad;
|
rw = MIN(w, TEXTW(buffer) - lrpad);
|
||||||
drw_text(drw, x, y, rw + lp, bh, lp, isrtl ? fribidi_text : buffer, 0, pango_item ? True : False);
|
drw_text(drw, x, y, rw + lp, bh, lp, isrtl ? fribidi_text : buffer, 0, pango_item ? True : False);
|
||||||
|
|
||||||
x += rw + lp;
|
x += rw + lp;
|
||||||
|
|
Loading…
Reference in a new issue