tbugfix of the -0 case in dmenu (thanks to Sander for his hint) - dmenu - Dmenu fork with xft fonts.
 (HTM) git clone git://r-36.net/dmenu
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2fe3ccdf581105f4232d5714cee1ebe40870087f
 (DIR) parent 07d82c0c2a377fa7cadfa91a8d89123fc7321a2a
 (HTM) Author: Anselm R Garbe <garbeam@gmail.com>
       Date:   Tue, 25 Mar 2008 09:43:34 +0000
       
       bugfix of the -0 case in dmenu (thanks to Sander for his hint)
       Diffstat:
         dmenu.c                             |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/dmenu.c b/dmenu.c
       t@@ -629,7 +629,7 @@ setup(int x, int y, int w) {
                mw = w ? w : DisplayWidth(dpy, screen);
                mh = dc.font.height + 2;
                if(y < 0) {
       -                if(y == (int)(unsigned int)-1)
       +                if(y == ((~(unsigned int)0)/2)+1)
                                y = DisplayHeight(dpy, screen) - mh;
                        else
                                y = (-1 * y) - mh;
       t@@ -709,7 +709,7 @@ main(int argc, char *argv[]) {
                        else if(!strcmp(argv[i], "-y")) {
                                if(++i < argc)
                                        if(!strcmp(argv[i], "-0"))
       -                                        y = (int)(unsigned int)-1;
       +                                        y = ((~(unsigned int)0)/2)+1;
                                        else
                                                y = atoi(argv[i]);
                        }