[comp.windows.x] twm question

kochhar@endor.harvard.edu (Sandeep Kochhar) (11/29/89)

While modifying my .twmrc and moving around xterm windows, I 
noticed the following problem:

Consider the following definition in my .twmrc:

	Button2 =      : title  : f.move

This works fine in that I can move a window (including xterm)
by pressing button 2 on 
the title bar.  However, I noticed that if I change the definitions
to:

Button2 =      : title  : f.function "f-move"

Function "f-move"
{
	f.move
}

then I have some problems moving an xterm window.  When I press button 2
on the title bar, the twm starts moving the window outline.  
If I release button 2 when the pointer is outside the xterm window,
it moves fine.  However, if I release button 2 when the pointer is
*inside* the xterm window, twm doesn't move the window, but continues
to move the outline.  Then if I press button2 and release it outside
the xterm window, the window does move, but the xterm window gets
text pasted to it as well (as is normally done by button2).

Can someone explain to me why the two definitions above should behave
any differently?

Thanks.


Sandeep Kochhar
(617) 495-3988              mail: kochhar@harvard.harvard.edu
Harvard University                kochhar@harvard.csnet
33 Oxford st,                     kochhar@harvard.uucp
Cambridge, Ma 02138               kochhar@harvard.bitnet

stolcke@icsi.Berkeley.EDU (Andreas Stolcke) (02/08/90)

Is there a way to tell twm not to label icons with the respective window
names? Most icons are descriptive enough, or even include the application
name, so that further labeling of icons is redundant and just takes up
precious space on the screen. 

In case this is not possible, consider this a suggestion for future
versions of twm -:). Of course it should be possible to specify
"NoIconLabels" selectively on a per-application basis (analogous to
NoTitle).

----
Andreas Stolcke
International Computer Science Institute	stolcke@icsi.Berkeley.EDU
1957 Center St., Suite 600, Berkeley, CA 94704	(415) 642-4274 ext. 126