home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / softsys / khoros / 2950 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!uwm.edu!ogicse!mimbres.cs.unm.edu!pprg.unm.edu!daemon
  2. From: young@chama.eece.unm.edu (Mark Young)
  3. Newsgroups: comp.soft-sys.khoros
  4. Subject: journal playback & concert bug (fix)
  5. Message-ID: <41776@pprg.eece.unm.edu.pprg.unm.edu>
  6. Date: 21 Nov 92 17:43:35 GMT
  7. Sender: daemon@pprg.unm.edu
  8. Lines: 48
  9.  
  10. Hi,
  11.  
  12.    First off let me say that will be the first of several messages i'll
  13. be sending out about bugs/fixes that have been reported in the last
  14. week.  This first bug was reported by Jon Hale of Omron Corporation.
  15. Thanks Jon for reporting and helping us fix this bug!!  We really
  16. appreciate the time and effort that you and omron invested in tracking
  17. this down.
  18.  
  19.    The bug had to do with journal playback not properly working on
  20. certain machines.  While in playback it would playback alpha-numerical
  21. values correctly, but not for special or characters that used different
  22. modifiers (shift, etc).  On the omron when the xprism3 journal playback
  23. would try and redisplay the keyword file:
  24.  
  25.             plot3D:example3.0
  26.  
  27.    It would come out as:
  28.  
  29.             plot3D*example3.0
  30.  
  31. The ':' being incorrectly substituted for a '*'.  The keysym record and
  32. playback within journal playback is not correctly translating between
  33. the different keyboards.  The problem is that the journal playback
  34. mechanism is not looking up the state as well as the keycode.  Here is
  35. the fix that should be applied:
  36.  
  37. in the file $KHOROS_HOME/src/xvroutines/Lib/xvforms/jp_playback.c on line
  38. 310 change from:
  39.  
  40.            keysym = XStringToKeysym(string);
  41.            event->xkey.keycode = XKeysymToKeycode(xvf_display, keysym);
  42.  
  43. to:
  44.            keysym = XStringToKeysym(string);
  45.            event->xkey.keycode = XKeysymToKeycode(xvf_display, keysym);
  46.            if (XKeycodeToKeysym(xvf_display, event->xkey.keycode, 1) == keysym)
  47.               event->xkey.state = ShiftMask;
  48.            else
  49.               event->xkey.state = 0;
  50.  
  51. --------------------------------------------------------------------------
  52. Mark Young                         young@chama.eece.unm.edu
  53.  
  54. Khoros Group                       (505) 277-6563  (work)
  55. University of New Mexico           Albuquerque,    NM 87131
  56. --------------------------------------------------------------------------
  57. Humor is something that is plentyful if you are willing to laugh at yourself.
  58.