[comp.windows.x] twm & Sons

brossard@sasun1.epfl.ch (Alain Brossard EPFL-SIC/SII) (10/23/90)

    Find included a few observations on twm and a copy of
a bug report I sent to xbugs.

    1- Button Bindings.
    
    I think twm should go back to the ways of uwm and awm with
respect to Button bindings: the binding should be done on
KeyPress, KeyRelease or delta.  the deltafunction now in twm
is a croack which doesn't really work in the sense that the
first functions is executed and then the 2nd one if the
pointer moves.  It would be a lot cleaner to have the
binding executed on a button release.  Any volunteers?

    2- Push-Pins (Open Windows 2.0).
    
    As most of you probably know, Open Look dictates the use
of push-pins on certain occasions.  Using Open Look programs with
a configurable window manager (anything but olwm !) makes it
hard to get rid of windows which expect some kind of signal
(?) through the push-pin.  Using UnmapWhenIconify only solves
part of the problem: the next time you un-iconify the main application,
all those windows that you thought you had gotten rid of reappear.
     And worse trying to make them appear again doesn't work unless
you iconify the application first and then de-iconify it.  I
wouldn't ask but there a couple of great applications with
Open Windows 2.0 and it is frustrating to use them with twm and
my new job leaves me very little time for hacking (regretfully).y
    So has anybody modified twm to add push-pins?  If not,
does anybody  know what would be involved in adding this
functionnality to twm, I assume that the code is available
in olwm, anybody knows where to look?

    3- Bug report with SortIconManager

                          X Window System Bug Report
                            xbugs@expo.lcs.mit.edu


VERSION:
    R4 patch level 18

CLIENT MACHINE and OPERATING SYSTEM:
    Sun 4/110 running SunOS 4.1

DISPLAY TYPE:
    Sun CG4

WINDOW MANAGER:
    twm

SYNOPSIS:
    The SortIconManager option doesn't work if you  have too many
icons (>32) in one Icon Manager.  New icons are not properly inserted.

smarks@eng.sun.COM (Stuart Marks) (10/25/90)

|     As most of you probably know, Open Look dictates the use
| of push-pins on certain occasions.  Using Open Look programs with
| a configurable window manager (anything but olwm !) makes it
| hard to get rid of windows which expect some kind of signal
| (?) through the push-pin.

Pulling olwm's pushpin sends a WM_DELETE_WINDOW message to the window.
This message is defined by the ICCCM, an X Consortium Standard.  It's not
OPEN LOOK specific.

I've put the following in my .twmrc to enable twm to send the
WM_DELETE_WINDOW message.  It works fine with XView applications.

RightTitleButton "opendot" = f.delete
LeftTitleButton "menu12" = f.menu "windowops"

menu "windowops"
{
"Window Menu"		f.title
"Delete"		f.delete
# ...
}

s'marks

Stuart W. Marks			ARPA: smarks@eng.sun.com
Windows & Graphics Software	UUCP: sun!smarks
Sun Microsystems, Inc.