Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!CS.UCLA.EDU!tek From: tek@CS.UCLA.EDU (Ted Kim (ATW)) Newsgroups: comp.windows.x Subject: Xlib questions Message-ID: <8808241725.AA04947@penzance.cs.ucla.edu> Date: 24 Aug 88 17:25:52 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 24 QUESTION 1 Timestamps are (according to the glossary) expressed in milliseconds since the last server reset. The server is supposed to treat half of the timestamps as being in the future, half in the past. Suppose the current server time is T. Type "Time" is an unsigned long in "X.h". (on my machine that's 32 bits) Which half of the timestamps are in the future? Is it the interval [T+1, T+2^31], excluding the constant CurrentTime if it is in the interval, with T+2^31 being furthest in the future? Conversly, which timestamps are in the past? QUESTION 2 How do you use XFreeColors? I have read the description and tried various things, but I still can't get it to work. To make things concrete, suppose I called XAllocColorCells and got 2 planes (1,2) and 2 pixels (24,28). Now suppose, I want to free all of these colors. What arguments should I use with XFreeColors to do this? -ted