ref: d77455ab2ddfbb74917f98a3344c47403b0461e8
parent: 010af9ba12213ccaf92a1d863dc1c971185ff7fb
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 1 04:53:08 EST 2014
libdraw: use pid as initial screenid so one can have more than 25 windows.
--- a/sys/src/libdraw/window.c
+++ b/sys/src/libdraw/window.c
@@ -22,6 +22,8 @@
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);
--
⑨