Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!voder!pyramid!leadsv!practic!saturn!saturn!denis From: denis@saturn.uucp (Denis Bohm) Newsgroups: comp.windows.x Subject: Why doesn't the WM_TAKE_FOCUS time work for XSetInputFocus? Keywords: WM_TAKE_FOCUS XSetInputFocus time Message-ID: <1990Oct2.215922.4553@vlsisj.uucp> Date: 2 Oct 90 21:59:22 GMT Sender: usenet@vlsisj.uucp (Usenet News) Reply-To: denis@saturn.uucp (Denis Bohm) Organization: VLSI Technology, Inc. Lines: 31 The ICCCM document states that "Clients must not use CurrentTime in the ``time'' field." when using XSetInputFocus. So I made my code use the time from the WM TAKE FOCUS message, but this doesn't work at all with mwm or olwm (it does work sometimes with twm). I changed my code to use CurrentTime instead and it now seems to work fine. Does anyone know why this is happening? Will I have other problems from using CurrentTime? From the ICCCM: |> 4.2.7. Input Focus ... |> Once a client satisfies these conditions, it may transfer |> the focus to another of its windows using the SetInputFocus |> request: |> |> SetInputFocus |> focus: WINDOW or PointerRoot or None |> revert-to: {Parent, PointerRoot, None} |> time: TIMESTAMP or CurrentTime |> |> Convention: Clients using SetInputFocus must set |> the ``time'' field to the timestamp of the event |> that caused them to make the attempt. Note that |> this cannot be a FocusIn event, since they do not |> have timestamps, and that clients may acquire the |> focus without a corresponding EnterNotify. |> Clients must not use CurrentTime in the ``time'' |> field. Denis Bohm (usenet: decwrl!vlsisj!denis) (internet: vlsisj!denis@decwrl.dec.com)