Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!fernwood!oracle!news From: jdanner@oracle.com (John Danner) Newsgroups: comp.windows.x Subject: ICCCM question on InputFocus Message-ID: Date: 12 Dec 90 18:08:13 GMT Sender: news@oracle.com Distribution: comp.windows.x Organization: Oracle Corp., Belmont CA Lines: 17 I have an application with multiple documents, and I need some way of determining which document is "current". Users make documents current by clicking on them on the Mac. The X equivalent seems to be FocusIn events, but under my current configuration of twm, I get these events whenever the cursor passes over a window. I know I can configure twm to set focus only when the user clicks, but other users may have their window managers set to give focus to windows when the cursor passes into them. I can't find anywhere in the ICCCM spec that dictates when a window manager should give focus to a window. If I can't differentiate between the user clicking on the title bar of the window and the cursor passing through the window, I can't see how to use focus events to indicate "current". Can anyone shed some light on this for me? Please reply directly, I don't read comp.windows.x regularly. Thanks John jdanner@oracle.com