aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libdraw/x11-itrans.c1
-rw-r--r--src/libdraw/x11-keyboard.c2
-rw-r--r--src/libdraw/x11-mouse.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/libdraw/x11-itrans.c b/src/libdraw/x11-itrans.c
index 4c33a0e8..37fd856c 100644
--- a/src/libdraw/x11-itrans.c
+++ b/src/libdraw/x11-itrans.c
@@ -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;
diff --git a/src/libdraw/x11-keyboard.c b/src/libdraw/x11-keyboard.c
index 08d6f086..bee0f410 100644
--- a/src/libdraw/x11-keyboard.c
+++ b/src/libdraw/x11-keyboard.c
@@ -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;
}
diff --git a/src/libdraw/x11-mouse.c b/src/libdraw/x11-mouse.c
index 92a099b0..df5bf7e9 100644
--- a/src/libdraw/x11-mouse.c
+++ b/src/libdraw/x11-mouse.c
@@ -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;
}