diff --git a/sys/src/libdraw/window.c b/sys/src/libdraw/window.c index 84ecb1fc9..83806535a 100644 --- a/sys/src/libdraw/window.c +++ b/sys/src/libdraw/window.c @@ -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);