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

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!cs.utexas.edu!usc!sdd.hp.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!dcode
  3. From: dcode@netcom.com (Paul Marcos)
  4. Subject: Move windows w/o making key or ordering front!!!
  5. Message-ID: <1992Dec19.072712.24579@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Sat, 19 Dec 1992 07:27:12 GMT
  8. Lines: 37
  9.  
  10. I didn't recall where the discussion took place, so sorry if you 
  11. read this post twice.  
  12.  
  13. A while back there was a somewhat heated discussion regarding whether
  14. you could (and should) be able to move a window without making it 
  15. come to front and be key.  You could already move it without making 
  16. it become the key window, but it always came to front.  
  17.  
  18. Well thanks to the person that posted the "NXSnapToIconsToGrid" trick
  19. (sorry, I didn't have the post, but that was a cool hack), I kept
  20. digging through the windowPackage.ps file.  In there is the piece
  21. of PostScript that handles mouse downs in the title bar.  
  22.  
  23. After about 4 hours of making stupid mistakes and hand writing a 
  24. ton of stacks, I got it working.  There are a few changes that you have
  25. to make and so far they seem to work.  Essentially the problem was that 
  26. the window server was checking for the Alternate key being down 
  27. *after* bringing the window to the front.  I moved the "bring to front"
  28. stuff after the check for the Alternate key and it worked, but then 
  29. that screwed up the stack for when there are no keys pressed.  So a 
  30. little monkeying with the stack and it all works!  It's kind of cool,
  31. and there's no speed decreases or anything like that.
  32.  
  33. If you're interested in getting the changes from me, drop me an e-mail.
  34. If enough people want it then I'll just post the whole chuck of PS that
  35. I changed.  All in all there's about 10 or 15 lines changed, but they're
  36. kind of scattered.
  37.  
  38. See you.
  39.  
  40. Paul
  41.  
  42. -- 
  43. --------------------------------------------------------------------------
  44. dCode        | Internet:  dcode@netcom.com    |  (415) 960-3539 
  45.  
  46. NeXT Mail Happily Accepted
  47.