JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
undo if 0 the select code.
[spectrwm.git] / 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)