home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20872 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.1 KB  |  59 lines

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