static void
cleanup()
{
+ ungrabkeys();
while(sel) {
resize(sel, True, TopLeft);
unmanage(sel);
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)