libdraw: use pid as initial screenid so one can have more than 25 windows.
This commit is contained in:
parent
010af9ba12
commit
d77455ab2d
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue