Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!bellcore-2!bellcore!news From: news@bellcore.bellcore.com (news) Newsgroups: comp.windows.x Subject: Problem with popups and focus Keywords: popups, focus Message-ID: <27913@bellcore.bellcore.com> Date: 16 Oct 90 15:12:34 GMT Reply-To: dfs@bellcore.com (Debby Swayne) Organization: Bell Communications Research, Morristown NJ Lines: 42 I'm having trouble with popup windows. Under openwin and under whatever DEC's window manager is (mwm?), I can't manage to type to the popup. I get perfectly fine behavior using twm. I assume that a power struggle of some sort is going on between my application and some window managers. My program is written using Xt and the old HP widgets, and I'm building a popup window on the fly. Here are some code fragments: void fname_popup(popup_pop) Widget popup_pop; { ... i = 0; if (mono) init_mono(args, &i); XtSetArg(args[i], XtNx, x); i++; XtSetArg(args[i], XtNy, y); i++; fpopup = XtCreatePopupShell("FSavePopup", transientShellWidgetClass, popup_pop, args, i); ... /* * Create the text widget to solicit the filename. */ i = 0; if (mono) init_mono(args, &i); XtSetArg(args[i], XtNeditType, (int) XwtextEdit); i++; XtSetArg(args[i], XtNxRefName, (String) "FSaveText"); i++; XtSetArg(args[i], XtNxAddWidth, (Boolean) True); i++; ftext = XtCreateManagedWidget("FSaveName", XwtexteditWidgetClass, fform, args, i); ... XtPopup(fpopup, XtGrabExclusive); } I never have understood popups very well. Can someone tell me what I might do to resolve this problem? I'm hoping for a solution that can be implemented in a few lines, of course, using the HP or Athena widgets; I'm not ready for a wholesale rewrite in another widget set. Debby dfs@bellcore.com