[comp.windows.x] a patch for tvtwm's segmenting

stevebe@ncr-fc.ncr.com (Steve.Beaty) (08/30/90)

well, i had a little problem with tvtwm in that it segmented when i
first ran it.  i used gcc to find a little gotcha in vdt.c.  here is the
diff if you run into this problem:

------- vdt.c -------
*** /tmp/da5586	Thu Aug 30 09:43:44 1990
--- vdt.c	Thu Aug 30 09:35:26 1990
***************
*** 576,582 ****
      XGrabButton(dpy, Button3, AnyModifier, Scr->Panner,
  	True, ButtonPressMask | ButtonReleaseMask | ButtonMotionMask,
  	GrabModeAsync, GrabModeAsync, Scr->Panner, None);
!     XSetWMProperties(dpy, Scr->Panner, wName, iName, NULL, 0,
  	sizeHints, wmHints, classHints);
  
      if (Scr->PannerState != WithdrawnState)
--- 576,582 ----
      XGrabButton(dpy, Button3, AnyModifier, Scr->Panner,
  	True, ButtonPressMask | ButtonReleaseMask | ButtonMotionMask,
  	GrabModeAsync, GrabModeAsync, Scr->Panner, None);
!     XSetWMProperties(dpy, Scr->Panner, &wName, &iName, NULL, 0,
  	sizeHints, wmHints, classHints);
  
      if (Scr->PannerState != WithdrawnState)

Steve Beaty					Steve.Beaty@ftcollins.ncr.com
Advanced CAD			              beaty@longs.lance.colostate.edu
NCR Microelectronics                              (303) 226-9622 (palinphone)

"What You See Is What You Get, 
	but it sure ain't what we need." - Talking Heads