From: dcode@netcom.com (Paul Marcos)
Subject: HOWTO: move windows w/o making key or ordering front
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Sat, 19 Dec 1992 16:58:40 GMT

Enough people requested it to be a pain in the butt to 
mail to everyone individually so here's how to do it:

There are 4 line changes and 2 line additions:

Lines 1176 through 1179:
	change from:
		5 index num //_frontWithClick exec
		7 index 7 index 6 index
		12 3 roll
		4 index //buckyBitMask and

	to:
		5 index num
		9 index 9 index 7 index
		14 3 roll
		6 index //buckyBitMask and

After Line 1181 (which reads 'icon 1 eq or {')
	insert:
		pop pop

After Line 1184 (which reads '}{')
	insert:
		//_frontWithClick exec

For those who care, the first 4 line changes basically 
move the _frontWithClick call down to put it after the 
Alternate key check.  That call takes two arguments off
the stack (and leaves nothing) so the following index
parameters are all incremented by 2 so they just look over
the extra stuff that sitting at the top of the stack.  
Then, if the Alternate key is down, it pops these two extra
items off the stack because it doesn't need them.  If the
Alternate key is NOT down, then we call _frontWithClick 
so that the window comes to front and is made key.  At the 
end of all of this, the stack looks no different than in the
old version so there shouldn't be any side effects of this.

Probably the easiest way to make the changes is to use Edit 
or something and jump to the appropriate line numbers and 
then do the changes.  

Now logout, type 'exit' in the login window to restart
the windowServer and log back in.  

Now the behavior of clicking in the title bar of any 
window, menu or miniturized window will be as follows:

	Click - Bring to front and make key
	Click + drag - Bring to front, make key and drag
	Click + Command - Send to back
	Click + Alternate + drag - drag without changing
			current window layer (Yeah!!!) and without
			making key (Yeah!!!)

You know what I think is really stupid?  Why didn't 
NeXT just put this functionality in using the Shift
key or something?  That way everybody could do whatever
they wanted and we'd all be happy.  

Another quick comment.  Somebody inquired why the app
icons don't snap to grids.  The reason is because the 
miniturized window icons are basically just a big square
title bar with no body.  I haven't dug far enough to see
how the app icons are handled.  Boy is this stuff just
screaming for a Preferences panel or what?!?!?  Maybe
one of these days I'll completely rip apart the 
windowPackage.ps file and make a Preferences panel that
lets you fine tune the windowServer to work the way you
want it to.  

I'd like to thank the person who posted the snap icons
to grid message.  They turned me onto the windowPackage.ps
file and that was a blast working through it.  If you're
out there, drop me a line.  

Enjoy.

Paul

P.S. Oh yeah, I take ***** NO ***** responsibility for 
anything that may happen from making these changes.  You're
on your own.

-- 
--------------------------------------------------------------------------
dCode        | Internet:  dcode@netcom.com    |  (415) 960-3539 

NeXT Mail Happily Accepted