home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!gatech!rpi!uwm.edu!spool.mu.edu!enterpoop.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: philr@sss.icl.co.UK (Phil Race)
- Subject: SUN OLIT3 appln always gets FocusIn on background menu popdown
- Message-ID: <10235.9301071652@sss.icl.co.uk>
- Sender: root@athena.mit.edu (Wizard A. Root)
- Organization: The Internet
- Date: Thu, 7 Jan 1993 16:52:36 GMT
- Lines: 48
-
- Dear all,
-
- I am having trouble with input focus using OLIT3 and OpenWindows3.
-
- I have a terminal emulator program which has a stub Widget as the terminal
- window. When the canvas menu (cut/paste etc) pops down I get a FocusIn event.
- Even if the mouse is not in the window any more!! (I am using follow mouse).
-
- Machine: IPX running SunOS4.1.2
- Server: OpenWindows3
- Window manager: olwm3
- Toolkit: OLIT3.0 and Sun supplied Xt
-
- It also occurs when compiled and run on solaris2.0:-
- Machine: sparc1 running Solaris2.0
- Server: OpenWindows3.0.1
- Window manager: olwm3.0.1
- Toolkit: OLIT3.0.1 and Sun supplied Xt
-
-
- However a different (earlier/non-Sun) version of the OPEN LOOK toolkit
- (a port of AT&T OLIT2.5 to an ICL SVR4 sparc) does not give the problem - even
- with the Sun as the Xserver.
- So the problem is in the (OLIT3) toolkit I suspect.
-
- I have added an Xt event handler on my top level widget to spot FocusChange
- events.
- On FocusIn I call OlSetInputFocus (which I presume calls XSetInputFocus)
- and set input focus to my preferred widget which is the terminal window.
- On FocusOut all I do is grey the cursor.
- Once I get the FocusIn it is already too late it seems.
-
- I notice that the OW3 olitsampler program seems to exhibit something similar
- when you pop down the canvas menu in its little textedit pane by clicking
- outside the sampler (ie - its textedit widget regains the focus) - so its
- not just me.
-
- I do not know if this works under OLIT2 since the application uses some
- features not present in OLIT2.
-
- Any suggestions??
-
- Phil Race,
- ICL Decision Support Product Centre Tel: +44 61 833 9111 x2204 (Fax x2356)
- Cardinal House, Email:philr@uk.co.icl.sss (JANET)
- St Mary's Parsonage philr@sss.icl.co.uk (INTERNET)
- Manchester M3 2NL ENGLAND
-
-