sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dmenu-vertfull-4.6.diff (534B)


      1 diff -wu a/dmenu.c b/dmenu.c
      2 --- a/dmenu.c	2015-11-08 23:42:21.000000000 +0100
      3 +++ b/dmenu.c	2015-11-10 18:13:43.937450512 +0100
      4 @@ -141,7 +141,6 @@
      5  
      6  	if (lines > 0) {
      7  		/* draw vertical list */
      8 -		w = mw - x;
      9  		for (item = curr; item != next; item = item->right) {
     10  			y += h;
     11  			if (item == sel)
     12 @@ -151,7 +150,7 @@
     13  			else
     14  				drw_setscheme(drw, &scheme[SchemeNorm]);
     15  
     16 -			drw_text(drw, x, y, w, bh, item->text, 0);
     17 +			drw_text(drw, 0, y, mw, bh, item->text, 0);
     18  		}
     19  	} else if (matches) {
     20  		/* draw horizontal list */