home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / x / 16351 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.0 KB  |  53 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  3. From: mahan@TGV.COM (Patrick L. Mahan)
  4. Subject: RE: How do I keep a window at the top level period?
  5. Message-ID: <920908095835.2900012b@TGV.COM>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Organization: The Internet
  8. Date: Tue, 8 Sep 1992 16:58:35 GMT
  9. Lines: 42
  10.  
  11. #
  12. #I am using the mwm window manager.  How can I get a particluar window, in this
  13. #case xeyes to always be the top level window, ie never buried?
  14. #
  15. #I am using the following in my Mwm file:
  16. #
  17. ## Set to Explicit to determine focus by clicking on the window or border
  18. ## Set to Pointer to determine focus based on the location of the pointer
  19. #Mwm*keyboardFocusPolicy: Pointer
  20. #
  21. ## Policy when the window with focus is minimized or removed
  22. ## if focuspolicy is explicit, set to true to give focus to
  23. ## the window with previous focus
  24. #Mwm*autoKeyFocus: True
  25. #
  26. ## if focuspolicy is explicit, set to true to give a window focus 
  27. ## when it is restored from an icon
  28. #Mwm*deiconifyKeyFocus: True
  29. #
  30. ## Set to True to raise a window when it is given focus
  31. ## Set to False to keep the stacking order the same when a window is given focus
  32. #Mwm*focusAutoRaise: True
  33. #
  34. ## if focuspolicy is explicit, 
  35. ## set to true to give input focus to a window when it is mapped
  36. #Mwm*startupKeyfocus: True
  37. #
  38.  
  39.  
  40. Well that all helps.  However, to keep Xeyes on top of the window stack will
  41. require you to modify the xeyes code.  What is needed, it a event handler,
  42. watching for CirculateNotify events.  At which, the event handler then forces
  43. the application to the top again.  All of the above resources will only work
  44. once xeyes has focus, not when some other window has focus.
  45.  
  46. Patrick L. Mahan
  47.  
  48. --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
  49.  
  50. Waking a person unnecessarily should not be considered  - Lazarus Long
  51. a capital crime.  For a first offense, that is            From the Notebooks of
  52.                               Lazarus Long
  53.