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