libdraw: use pid as initial screenid so one can have more than 25 windows.

front
cinap_lenrek 2014-02-01 09:53:08 +01:00
parent 010af9ba12
commit d77455ab2d
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ allocscreen(Image *image, Image *fill, int public)
s = malloc(sizeof(Screen));
if(s == 0)
return 0;
if(!screenid)
screenid = getpid();
for(try=0; try<25; try++){
/* loop until find a free id */
a = bufimage(d, 1+4+4+4+1);