[comp.windows.x] more R4 twm problems

madd@world.std.com (jim frost) (01/07/90)

One thing I've noticed is that twm does not allow resizing a window to
a smaller size until after you've stretched the resize box to larger
than the current size.

I'm not sure I'd call this a feature, as it makes life very difficult
if, say, the window you have is as large as the screen and you have
twm set up to keep windows on the screen.  It then becomes impossible
to shrink the window.

Does anyone know if the new twm correctly handles window size
suggestions?  The old one would always use the maximum size field
instead of the preferred size field and would happily resize windows
to both larger and smaller than the size boundaries specified by the
program.

jim frost
saber software
jimf@saber.com

pnakada@oracle.com (Paul Nakada) (01/08/90)

I've encountered a problem with twm as well.  In my applications menu,
I have some fairly long command lines which I want sent to /bin/sh.
using old twm I could break the lines up by escaping the newline with
a "\" character.   Now twm hangs  because /bin/sh raises an error when
it gets two lines instead of one.  So the workaround is to have ugly
.twmrc files with lines wrapping around.  

I'm running X11R4 on Sun Sparc 1.

-Paul Nakada
pnakada@oracle.com

toml@ninja.Solbourne.COM (Tom LaStrange) (01/08/90)

> One thing I've noticed is that twm does not allow resizing a window to
> a smaller size until after you've stretched the resize box to larger
> than the current size.

Try "AutoRelativeResize"

--
Tom LaStrange

Solbourne Computer Inc.    ARPA: toml@Solbourne.COM
1900 Pike Rd.              UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO  80501

toml@ninja.Solbourne.COM (Tom LaStrange) (01/08/90)

> I've encountered a problem with twm as well.  In my applications menu,
> I have some fairly long command lines which I want sent to /bin/sh.
> using old twm I could break the lines up by escaping the newline with
> a "\" character.   Now twm hangs  because /bin/sh raises an error when
> it gets two lines instead of one.  So the workaround is to have ugly
> .twmrc files with lines wrapping around.  

You probably want to put two backslashes, twm now goes looking through 
your string and does some character escaping for you.  You now need to
escape your backslash.

Boy I feel sorry for that guy named Tab :-)

--
Tom LaStrange

Solbourne Computer Inc.    ARPA: toml@Solbourne.COM
1900 Pike Rd.              UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO  80501

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (01/09/90)

    One thing I've noticed is that twm does not allow resizing a window to
    a smaller size until after you've stretched the resize box to larger
    than the current size.

Yup.  That's why the AutoRelativeResize keyword is there.  It makes resizing
work more like the uwm-style.