dmh@goanna.oz.au (Darren Hosking) (11/13/89)
The version of xfig I have (1.4.3, X11 patchlevel 6) has a problem inputing text AFTER almost any option in the popup menu (right button) is selected. Text input works fine when xfig is first started but once, say, save is selected in the popup menu you cannot input text. The text input prompt and cursor appear when you click where you want the text but anything typed is not echoed. However, if you select "save in" from the popup then text can be typed in for the file name (in the bottom widget) but still not for text on the canvas. I have followed through the code and it appears that after using the popup menu keyboard events are not reported. I have tried doing another XSelectInput() and XtAddActions() incase the popup is effecting something but to no avail. Is this an xfig bug or an Xaw bug? Does anyone know of the solution? Thanks in advance, dmh Darren Hosking ACSnet: dmh@goanna.oz Department Of Computer Science ARPA: dmh%goanna.oz.au@uunet.uu.net RMIT CSNET: dmh%goanna.oz.au@australia GPO Box 2476V UUCP: ...!uunet!goanna.oz.au!dmh Melbourne Vic., Australia 3001
envbvs@epb2.lbl.gov (Brian V. Smith) (11/14/89)
Try setting InputHint of the Window Manager hints to TRUE. xfig will not allow any input when running DECwindows dxwm (a fully ICCCM- compliant window manager), so this fixes that problem. Maybe it is also your problem. (near line 229 in main.c): Arg tmp_arg[2]; + XWMHints *wmhints; (near line 314 in main.c): ... XtManageChildren(children, NCHILDREN); XtRealizeWidget(tool); + /* Set the input field to true to allow keyboard input */ + wmhints = XGetWMHints(tool_d, XtWindow(tool)); + wmhints->flags = InputHint; + wmhints->input = True; + XSetWMHints(tool_d, XtWindow(tool),wmhints); if( RHS_PANEL ) ... _____________________________________ Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory I don't speak for LBL, these non-opinions are all mine.