66 |
|
|
67 |
|
extern char *malloc(), *getcombuf(); |
68 |
|
|
69 |
+ |
extern char *progname; |
70 |
+ |
|
71 |
|
int x_close(), x_clear(), x_paintr(), x_errout(), |
72 |
|
x_getcur(), x_comout(), x_comin(); |
73 |
|
|
104 |
|
mainframe.background = BlackPixmap; |
105 |
|
sprintf(defgeom, "=%dx%d+0+22", DisplayWidth()-(2*BORWIDTH), |
106 |
|
DisplayHeight()-(2*BORWIDTH+22)); |
107 |
< |
gwind = XCreate("X10 driver", name, NULL, defgeom, |
107 |
> |
gwind = XCreate("X10 display driver", progname, NULL, defgeom, |
108 |
|
&mainframe, MINWIDTH, MINHEIGHT+COMHEIGHT); |
109 |
|
if (gwind == 0) { |
110 |
|
stderr_v("can't create window\n"); |
379 |
|
register char *str; |
380 |
|
|
381 |
|
str = XLookupMapping(ekey, &n); |
382 |
< |
while (n-- > 0 && c_last < sizeof(c_queue)) |
382 |
> |
while (n-- > 0 && c_last < sizeof(c_queue)) { |
383 |
|
c_queue[c_last++] = *str++; |
384 |
< |
x_driver.inpready = c_last - c_first; |
384 |
> |
x_driver.inpready++; |
385 |
> |
} |
386 |
|
} |
387 |
|
|
388 |
|
|