Path: utzoo!attcan!uunet!samsung!usc!ucsd!helios.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.windows.x Subject: Re: xdbx, xfig, xterm problems (SUN server) Summary: Realize the Widget and you will be saved Message-ID: <4244@helios.ee.lbl.gov> Date: 19 Nov 89 18:47:42 GMT References: <215@isgtec.UUCP> Sender: usenet@helios.ee.lbl.gov Reply-To: envbvs@epb2 (Brian V. Smith) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 62 In article <215@isgtec.UUCP> andrew@isgtec.UUCP (Andrew) writes: < Hello X World, I am still in need of help regarding the following < programs: xterm, xdbx, xfig < I have the three patch files now for xdbx (therefore I am at PATCHLEVEL 1?) < Over the last few days, a patch was sugguested to fix xdbx for a system < running 4.0.3: It doesn't have to do with what version of the operating system, but which window manager you are running: < > /* 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); < > } < < It looks like it might work, but I receive a bad window error on the line < wmhints = XGetWMHints(Xt.... < < I believe that I put the patch in the right place (ie. After the line < vpane = XtCreateManagedWidget("vpane", vPanedWidgetClass, parent, args, n);) < < Does this mean that a managed child cannot have its WMHints adjusted? What < am I doing wrong? You have to Realize the Widget before it has a window associated with it. The call to XGetWMHints should go after XtRealize... . < ________________________________________________________________________ < xfig: < < Okay, I have now brought xfig up-to patch level 6, yet I am < still having problems with getting it to run. < < signal SEGV (segmentation violation) in XmuCreateStippledPixmap < < Looking at dbx: < ^^^^^^^^^^^^^^^ < < stopped in init_panel at line 193 in file "panel.c" < 193 panel_sw, button_args, XtNumber(button_args)); < (dbx) s < X Toolkit Warning: Representation type Cursor must match superclass's to overrid < e cursor < X Toolkit Warning: No type converter registered for 'Cursor' to 'Pixel' conversi < on. I wish I could help here, but I haven't seen this error in xfig, even on SunOs 4.0 Anyone else care to comment? -- _____________________________________ Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory I don't speak for LBL, these non-opinions are all mine.