Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!crdgw1!montnaro From: montnaro@sprite.crd.ge.com (Skip Montanaro) Newsgroups: comp.windows.news Subject: Re: xnews and X -- input focus problem Message-ID: Date: 16 Nov 89 17:27:04 GMT References: <18212@bellcore.bellcore.com> Sender: news@crdgw1.crd.ge.com Reply-To: (Skip Montanaro) Organization: GE Corporate Research & Development, Schenectady, NY Lines: 53 In-reply-to: news@bellcore.bellcore.com's message of 16 Nov 89 03:48:20 GMT The incompatibility between X/NeWS (with its ICCCM-compliant window manager and toolkit) and older X applications is getting rather well-known these days. Another person here at GE CRD just posted a note about this problem to comp.windows.x. I've reproduced it below. Placing "*Input: true" in .Xdefaults worked for me, at least it cured xdvi's problems. I haven't had the opportunity to try other applications yet. Apparently Phil tried xfig, xdbx, and xman, however. From shaffer@athena.crd.ge.com Wed Nov 15 17:13:12 1989 Newsgroups: comp.windows.x Reply-To: shaffer@crd.ge.com (Phillip L. Shaffer) Organization: General Electric Corp. R&D, Schenectady, NY From: shaffer@athena.crd.ge.com Subject: Re: Has anyone fixed xfig and xdbx to work with Open Windows? Date: 15 Nov 89 17:37:30 GMT 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 -- Skip Montanaro (montanaro@crdgw1.ge.com)