home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / misc / 23226 < prev    next >
Encoding:
Text File  |  1992-12-21  |  3.3 KB  |  100 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!dcode
  3. From: dcode@netcom.com (Paul Marcos)
  4. Subject: HOWTO: move windows w/o making key or ordering front
  5. Message-ID: <1992Dec19.165840.8945@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Sat, 19 Dec 1992 16:58:40 GMT
  8. Lines: 90
  9.  
  10. Enough people requested it to be a pain in the butt to 
  11. mail to everyone individually so here's how to do it:
  12.  
  13. There are 4 line changes and 2 line additions:
  14.  
  15. Lines 1176 through 1179:
  16.     change from:
  17.         5 index num //_frontWithClick exec
  18.         7 index 7 index 6 index
  19.         12 3 roll
  20.         4 index //buckyBitMask and
  21.  
  22.     to:
  23.         5 index num
  24.         9 index 9 index 7 index
  25.         14 3 roll
  26.         6 index //buckyBitMask and
  27.  
  28. After Line 1181 (which reads 'icon 1 eq or {')
  29.     insert:
  30.         pop pop
  31.  
  32. After Line 1184 (which reads '}{')
  33.     insert:
  34.         //_frontWithClick exec
  35.  
  36. For those who care, the first 4 line changes basically 
  37. move the _frontWithClick call down to put it after the 
  38. Alternate key check.  That call takes two arguments off
  39. the stack (and leaves nothing) so the following index
  40. parameters are all incremented by 2 so they just look over
  41. the extra stuff that sitting at the top of the stack.  
  42. Then, if the Alternate key is down, it pops these two extra
  43. items off the stack because it doesn't need them.  If the
  44. Alternate key is NOT down, then we call _frontWithClick 
  45. so that the window comes to front and is made key.  At the 
  46. end of all of this, the stack looks no different than in the
  47. old version so there shouldn't be any side effects of this.
  48.  
  49. Probably the easiest way to make the changes is to use Edit 
  50. or something and jump to the appropriate line numbers and 
  51. then do the changes.  
  52.  
  53. Now logout, type 'exit' in the login window to restart
  54. the windowServer and log back in.  
  55.  
  56. Now the behavior of clicking in the title bar of any 
  57. window, menu or miniturized window will be as follows:
  58.  
  59.     Click - Bring to front and make key
  60.     Click + drag - Bring to front, make key and drag
  61.     Click + Command - Send to back
  62.     Click + Alternate + drag - drag without changing
  63.             current window layer (Yeah!!!) and without
  64.             making key (Yeah!!!)
  65.  
  66. You know what I think is really stupid?  Why didn't 
  67. NeXT just put this functionality in using the Shift
  68. key or something?  That way everybody could do whatever
  69. they wanted and we'd all be happy.  
  70.  
  71. Another quick comment.  Somebody inquired why the app
  72. icons don't snap to grids.  The reason is because the 
  73. miniturized window icons are basically just a big square
  74. title bar with no body.  I haven't dug far enough to see
  75. how the app icons are handled.  Boy is this stuff just
  76. screaming for a Preferences panel or what?!?!?  Maybe
  77. one of these days I'll completely rip apart the 
  78. windowPackage.ps file and make a Preferences panel that
  79. lets you fine tune the windowServer to work the way you
  80. want it to.  
  81.  
  82. I'd like to thank the person who posted the snap icons
  83. to grid message.  They turned me onto the windowPackage.ps
  84. file and that was a blast working through it.  If you're
  85. out there, drop me a line.  
  86.  
  87. Enjoy.
  88.  
  89. Paul
  90.  
  91. P.S. Oh yeah, I take ***** NO ***** responsibility for 
  92. anything that may happen from making these changes.  You're
  93. on your own.
  94.  
  95. -- 
  96. --------------------------------------------------------------------------
  97. dCode        | Internet:  dcode@netcom.com    |  (415) 960-3539 
  98.  
  99. NeXT Mail Happily Accepted
  100.