All pastes #835246 Raw Edit

Something

public text v1 · immutable
#835246 ·published 2007-12-28 19:38 UTC
rendered paste body
int screens, i;
char *dispstr, *subdisp;
char newdisp[128];

screens = ScreenCount(ecore_x_display_get());

  for (i = 0; i < screens; i++) {
    dispstr = strchr(subdisp, ':');
    if (dispstr) {
      dispstr = strchr(dispstr, '.');
      if (NULL != dispstr)
        *dispstr = '\0';
    }
    snprintf(newdisp, sizeof(newdisp), "%s.%d", subdisp, i);
ecore_x_init(newdisp);