You're not supposed to combine event(2) with thread(2).
See mouse(2).
Federico G. Benavento
---
/bin/fortune:
Steal money you're a thief: steal a country you're a king.
--- Begin Message ---
On Nov 24, 2007, at 11:00 AM, andrey mirtchovski wrote:
Use q to quit (and
crash, for some threadexitsall-related reason).
that usually means you need a bigger stack for your threads.
Setting both threads to 4096 stacksize fixed it. I'll note that in my
tutorial. I used one thread to interpret mouse events, since for some
odd reason eresized() is sent through the mouse. :-(
--- End Message ---