n = xcb_get_property_value_length(r);
type = xcb_get_property_value(r);
-
+
for (i = 0; i < n; i++) {
if (type[i] == ewmh[_NET_WM_WINDOW_TYPE_NORMAL].atom)
break;
}
fclose(lfile);
+
xcb_flush(conn);
}
buttons[i].button == e->detail &&
CLEANMASK(buttons[i].mask) == CLEANMASK(e->state))
buttons[i].func(win, &buttons[i].args);
+
+ xcb_flush(conn);
}
void
} else {
config_win(win, e);
}
+
+ xcb_flush(conn);
}
void
}
focus_magic(win);
+
+ xcb_flush(conn);
}
/* lets us use one switch statement for arbitrary mode/detail combinations */
stack();
}
+
+ xcb_flush(conn);
}
int
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);
continue;
}
-#if 0
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");
-#endif
if (restart_wm == 1)
restart(NULL, NULL);
if (search_resp == 1)