Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!usc!cs.utexas.edu!mailrus!cornell!batcomputer!rpi!crdgw1!athena.crd.ge.com!shaffer From: shaffer@athena.crd.ge.com Newsgroups: comp.windows.x Subject: Re: Has anyone fixed xfig and xdbx to work with Open Windows? Message-ID: <3860@crdgw1.crd.ge.com> Date: 15 Nov 89 17:37:30 GMT References: <3817@crdgw1.crd.ge.com> Sender: news@crdgw1.crd.ge.com Reply-To: shaffer@crd.ge.com (Phillip L. Shaffer) Organization: General Electric Corp. R&D, Schenectady, NY Lines: 33 A couple of days ago I posted this query. I got one response which didn't answer the question, but a couple of other messages posted gave me the information to do what I wanted. There are two ways: 1) Fixes the problem in general (works for xfig, xdbx, and xman, at least): add to your ~/.Xdefaults file the line: *Input: true and restart xnews. 2) Patch the source code for xfig and xdbx (I tried xman and couldn't find the right place). In xdbx, patch the file windows.c thus: 120a121,129 > /* ask window manager for input focus: */ > { > XWMHints wmhints; > wmhints = XGetWMHints((XtDisplay(vpane), XtWindow(vpane)); > wmhints.input = True; > wmhints.flags = InputHint; > XSetWMHints(XtDisplay(vpane), XtWindow(vpane), &wmhints); > } > In xfig, patch main.c similarly, after (around line 333) "XtRealizeWidget(tool);" only change "vpane" above to "tool". Phillip L. Shaffer shaffer@crd.ge.com GE Corporate Research & Development uunet!crd.ge.com!shaffer Building KW, Room D211 P.O. Box 8, Schenectady NY 12301