home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / screen / cmwa37_2.lha / ReadMe < prev   
Text File  |  1993-06-13  |  3KB  |  93 lines

  1.  
  2.                          Quick ReadMe to CMWA 37.2
  3.                          =========================
  4.  
  5.  
  6. Now, what it does?  It activates the last active window on the screen, that
  7. goes  in front.  Just like MWA (TWA or WindX), but without bugs and in only
  8. 1028 bytes.
  9.  
  10.  
  11.  
  12.                               How to Install?
  13.                               ===============
  14.  
  15. What you should do?  Put it in your User-Startup.  No need to 'Run' it.  If
  16. you  call  it  a  second time, it will remove itself.  Oh, yes, it detaches
  17. leaving  only a port behind -- no valuable taskswitching time is used after
  18. installation.  Neat, eh?
  19.  
  20. You  can  also  drag it into your SYS:WBStartup drawer.  I really wanted it
  21. small  and neat, but Mark Cassidy rode me like a mare and got that WB stuff
  22. in there at last...  :-)
  23. When started from WB, it will only tell you if something went wrong or when
  24. it  has  removed.   So,  it  will  not  block  your  system  when  starting
  25. unattended.
  26.  
  27. Oh, by the way...  if you specify POPUP as an icon tooltype, it will inform
  28. you   via  EasyRequest(),  when  it  has  installed  itself.   Otherwise...
  29. nothing...  only messages when removing or failing...
  30.  
  31.  
  32.  
  33.                             A Bug in Intuition?
  34.                             ===================
  35.  
  36. I  forgot to mention, why I made this update to 37.1...  you see, intuition
  37. sometimes locks up, if IBase is locked while IDCMP comes from input.device.
  38. In  other  words,  if  IBase  is  locked,  while intuition receives a mouse
  39. movement,  we  might be doomed.  Hmmm...  this does not always happen, so I
  40. guess it has something to do with the deferred action queue getting mangled
  41. up in some way.
  42.  
  43. Now,  did we *REALLY* need to lock IBase?  No, since all IBase work is done
  44. in  just a single move instruction, which can't be caught in task-switching
  45. (have to be between instructions).
  46.  
  47. So, I forgot all about IBase and it worked.
  48.  
  49. Now,  I'm  sure  that  a  pair of Disable()/Enable() will make it work with
  50. LockIBase()/UnlockIBase(),  but  that  seems to be overstepping it for this
  51. kind of thing, really...  :-)
  52.  
  53. And  then  the other thing about this fix:  it was not necessarily the last
  54. active  window  on  the  upcoming screen, that was made active...  Ooops...
  55. Boomer!  :-)
  56.  
  57.  
  58.  
  59.                               Technicalities?
  60.                               ===============
  61.  
  62. Some  of  you folks out there may want to know how this is achieved.  Easy.
  63. I  patch  LoadView()  in  graphics.library.  In my patch, before I call the
  64. original  LoadView()  stuff,  I  set up the last active window as the first
  65. window in the screen's window list.
  66.  
  67. When  I am done with LoadView(), I simply ActivateWindow() the first window
  68. in  the  active  screen's  window  list.   If  no window on that screen was
  69. active,  I just activate the first one available.  And if no window exists,
  70. I do nothing.
  71.  
  72. More tech stuff?  Write to me and get the source...
  73.  
  74.  
  75.  
  76.                            What About The Money?
  77.                            =====================
  78.  
  79. Send money, cars, boats, planes, diamonds, emeralds, gold, platinum,
  80. whatever to:
  81.  
  82.  Jesper Kehlet
  83.  Bredengen 19 - Svogerslev
  84.  DK-4000  Roskilde
  85.  Denmark
  86.  
  87.  FIDO: 2:230/413
  88.  Usenet: kehlet@kehlet.adsp.sub.org
  89.  
  90. I expect to see at least an e-mail or a fido netmail if you use this, ok?
  91.  
  92. If you want the source, write to me at one of the above addresses...
  93.