mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
make stack requirements more explicit.
This commit is contained in:
parent
3151bc58b8
commit
63b6732301
3 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@ __xtoplan9kbd(XEvent *e)
|
|||
|
||||
if(e->xany.type != KeyPress)
|
||||
return -1;
|
||||
needstack(20*1024); /* X has some *huge* buffers in openobject */
|
||||
XLookupString((XKeyEvent*)e,NULL,0,&k,NULL);
|
||||
if(k == XK_Multi_key || k == NoSymbol)
|
||||
return -1;
|
||||
|
|
|
@ -74,7 +74,7 @@ initkeyboard(char *file)
|
|||
if(kc == nil)
|
||||
return nil;
|
||||
kc->c = chancreate(sizeof(Rune), 20);
|
||||
threadcreate(_ioproc, kc, 16384);
|
||||
threadcreate(_ioproc, kc, 32768);
|
||||
return kc;
|
||||
}
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ initmouse(char *file, Image *i)
|
|||
mc->display = i->display;
|
||||
mc->c = chancreate(sizeof(Mouse), 0);
|
||||
mc->resizec = chancreate(sizeof(int), 2);
|
||||
threadcreate(_ioproc, mc, 16384);
|
||||
threadcreate(_ioproc, mc, 32768);
|
||||
return mc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue