Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!rochester!cornell!tclark From: tclark@honir.cs.cornell.edu (Timothy Clark) Newsgroups: comp.sys.isis Subject: spread demo under OpenWindows Message-ID: <47263@cornell.UUCP> Date: 18 Oct 90 16:39:08 GMT Sender: nobody@cornell.UUCP Reply-To: tclark@cs.cornell.edu (Timothy Clark) Distribution: comp Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 42 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 ---- ***************