JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
undo if 0 the select code.
authorDavid Hill <dhill@conformal.com>
Sun, 15 Jul 2012 06:41:30 +0000 (02:41 -0400)
committerReginald Kennedy <rk@rejii.com>
Fri, 20 Jul 2012 21:59:29 +0000 (05:59 +0800)
spectrwm.c

index 15187b3..684eebc 100644 (file)
@@ -7646,10 +7646,8 @@ main(int argc, char *argv[])
        int                     xfd, i, num_screens;
        struct sigaction        sact;
        xcb_generic_event_t     *evt;
-#if 0
        struct timeval          tv;
        fd_set                  rd;
-#endif
 
        time_started = time(NULL);
 
@@ -7818,7 +7816,6 @@ noconfig:
                        continue;
                }
 
-#if 0
                FD_ZERO(&rd);
                FD_SET(xfd, &rd);
                tv.tv_sec = 1;
@@ -7826,7 +7823,6 @@ noconfig:
                if (select(xfd + 1, &rd, NULL, NULL, &tv) == -1)
                        if (errno != EINTR)
                                DNPRINTF(SWM_D_MISC, "select failed");
-#endif
                if (restart_wm == 1)
                        restart(NULL, NULL);
                if (search_resp == 1)