JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
implemented ungrabkeys() which is called in cleanup()
[dwm.git] / main.c
diff --git a/main.c b/main.c
index 6ef9ea7..228228b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -22,6 +22,7 @@ static Bool otherwm;
 static void
 cleanup()
 {
+       ungrabkeys();
        while(sel) {
                resize(sel, True, TopLeft);
                unmanage(sel);
@@ -263,7 +264,7 @@ main(int argc, char *argv[])
                        FD_SET(STDIN_FILENO, &rd);
                FD_SET(xfd, &rd);
 
-               i = select(xfd + 1, &rd, 0, 0, 0);
+               i = select(xfd + 1, &rd, NULL, NULL, NULL);
                if(i == -1 && errno == EINTR)
                        continue;
                if(i < 0)