nanogui: running nano-x
Subject:
Re: [nanogui] running nano-x
From:
Hinko Kocevar ####@####.####
Date:
30 Jul 2004 20:22:31 +0100
Message-Id: <410A9FF3.7070509@iskramedical.si>
Greg Haerr wrote:
> Try printf()ing the values of the 3 fds that are passed, it may be
> that the mousefd or keyfd are negative...
mouse_fd is -2 if print()ed in GsInitialise() - result of NUL_Open().
Same goes for keyb_fd which is -2 also for the same reason.
In GsSelect() those fds don't get in fd_set, since they are not >= 0.
un_sock takes up fb nr. 3. These are print()outs of fds in fd_Set just
before call to select() is made:
maxfd = setsize+1;
for(i=0; i<=maxfd; i++)
printf("%d\t%d\n", i, FD_ISSET(i,&rfds));
FD val
0 0
1 0
2 0
3 1
4 0
--
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU
"Aì rén" | [Analects XII:22]