From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9D8B8E4B-AE4B-4B59-8BC7-B047E391665D@mac.com> Content-Transfer-Encoding: 7bit From: Pietro Gagliardi Subject: Re: [9fans] Attempt at making 3D graphics library Date: Sun, 30 Dec 2007 11:33:03 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 246339ae-ead3-11e9-9d60-3106f5b1d025 Then how do you check for the window resized event? I heard from IRC #plan9 that resize events are sent through /dev/mouse, so the following code is the event(2) way of ensuring resize events get done: for (;;) if (ecanmouse()) emouse(); On Nov 24, 2007, at 5:48 PM, Federico G. Benavento wrote: > 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. > > From: Pietro Gagliardi > Date: November 24, 2007 11:21:57 AM EST > To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> > Subject: Re: [9fans] Attempt at making 3D graphics library > Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> > > > > 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. :-( > >