All pastes #835298 Raw Edit

Untitled

public c v1 · immutable
#835298 ·published 2007-12-28 20:16 UTC
rendered paste body
/** * Initialize Ecore_X with proper display */void _eg_init(){  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);  }}