[comp.sys.ibm.pc.rt] Bug in twm

jw@pan.UUCP (Jamie Watson) (01/06/89)

The "aixterm" distributed with IBM's implementation of X for AIX
led me to a bug in the latest (5.0 ... or 1.2) version of twm -
the version on the X.V11R3 contrib1 tape.  The aixterm icon will
react to any mouse button hit by de-iconifying.  Except, with twm
it reacts by disappearing entirely.

The problem is in events.c; the sense of a test is inverted.


*** events.old	Thu Jan  5 21:33:20 1989
--- events.c	Sat Dec 31 09:20:55 1988
***************
*** 716,722 ****
      else
      {
  #ifndef ICCCM
! 	if (!tmp_win->icon)
  	{
  #endif
  	    DeIconify(tmp_win);
--- 716,722 ----
      else
      {
  #ifndef ICCCM
! 	if (tmp_win->icon)
  	{
  #endif
  	    DeIconify(tmp_win);