I have no idea the purpose of it.
{
struct swm_region *r, *rr;
struct ws_win *winfocus = NULL;
{
struct swm_region *r, *rr;
struct ws_win *winfocus = NULL;
union arg a;
char conf[PATH_MAX], *cfile = NULL;
struct stat sb;
int xfd, i, num_screens;
union arg a;
char conf[PATH_MAX], *cfile = NULL;
struct stat sb;
int xfd, i, num_screens;
struct sigaction sact;
xcb_generic_event_t *evt;
struct sigaction sact;
xcb_generic_event_t *evt;
+#if 0
+ struct timeval tv;
+ fd_set rd;
+#endif
time_started = time(NULL);
time_started = time(NULL);
FD_ZERO(&rd);
FD_SET(xfd, &rd);
tv.tv_sec = 1;
FD_ZERO(&rd);
FD_SET(xfd, &rd);
tv.tv_sec = 1;
if (select(xfd + 1, &rd, NULL, NULL, &tv) == -1)
if (errno != EINTR)
DNPRINTF(SWM_D_MISC, "select failed");
if (select(xfd + 1, &rd, NULL, NULL, &tv) == -1)
if (errno != EINTR)
DNPRINTF(SWM_D_MISC, "select failed");
if (restart_wm == 1)
restart(NULL, NULL);
if (search_resp == 1)
if (restart_wm == 1)
restart(NULL, NULL);
if (search_resp == 1)