[comp.sys.isis] spread demo under OpenWindows

tclark@honir.cs.cornell.edu (Timothy Clark) (10/18/90)

To those of you running under the olwm of OpenWindows and experiencing problems
with the ISIS demo "spread" (keyboard input not going to spread), the patch 
below should take care of the problem:


*** spread.c    Wed Oct 17 16:50:00 1990
--- /usr/u/isis/isisv2.1/demos/spread.c Mon Sep 17 11:23:44 1990
***************
*** 634,641 ****
    char displayname[32], fontname[32];
    int x, y;
  {
!     XWMHints wmhints;
!
      gethostname (name, 19);
      for (namelen = 0; name[namelen] && name[namelen] != '.' && namelen < 18; n
amelen++)
          continue;
--- 626,632 ----
    char displayname[32], fontname[32];
    int x, y;
  {
!
      gethostname (name, 19);
      for (namelen = 0; name[namelen] && name[namelen] != '.' && namelen < 18; n
amelen++)
          continue;
***************
*** 660,669 ****
      twidth = leftx + numbcols*colwidth + rtwidth + rtmargin;
      win = XCreateSimpleWindow (dpy, RootWindow(dpy, screen),
                                 x, y, twidth, theight, bdrwidth, black, white);
+
+     wmhints.flags = InputHint;
+     wmhints.input = TRUE;
+     XSetWMHints(dpy, win, &wmhints);
      XStoreName(dpy, win, name);
      XMapRaised (dpy, win);
      if (x != 0 && y != 0) {
--- 651,656 ----
***************