JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
implemented draw_client stuff
[dwm.git] / menu.c
diff --git a/menu.c b/menu.c
index ff0ffc1..e09d3b7 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -304,7 +304,7 @@ kpress(XKeyEvent * e)
                }
                break;
        default:
-               if((num == 1) && !iscntrl((int) buf[0])) {
+               if(num && !iscntrl((int) buf[0])) {
                        buf[num] = 0;
                        if(len > 0)
                                strncat(text, buf, sizeof(text));
@@ -356,13 +356,6 @@ main(int argc, char *argv[])
        char *maxname;
        XEvent ev;
 
-       char buf[256];
-
-       pipe_spawn(buf, sizeof(buf), NULL, STATUSCMD);
-       fputs(buf, stderr);
-
-       return 0;
-
        /* command line args */
        for(i = 1; i < argc; i++) {
                if (argv[i][0] == '-')