Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!srcsip!tcnet!umn-cs!kulkarni From: kulkarni@umn-cs.CS.UMN.EDU (Srinivas R. Kulkarni) Newsgroups: comp.windows.x Subject: lost Keyboard events after a PopUp Message-ID: <14829@umn-cs.CS.UMN.EDU> Date: 29 Jul 89 10:24:01 GMT Distribution: usa Organization: University of Minnesota, Minneapolis Lines: 51 I am having a problem with PopUps and I was wondering if anyone could help me out. I receive keyboard events just fine until I do any sort of PopUp. After a popup, my keyboard events are effectively ignored! Has anybody out there had similar problems with popups? Sorry if I have wasted precious net-time. Thanks In Advance. Srinivas R Kulkarni U of M Mpls, Mn -----------------code-------------------- static XtActionsRec simple_actions[] = { { "Window_Event", (XtActionProc) Window_Event}, }; static String simpleWidgTranslations = " : Window_Event() \n\ : Window_Event() \n\ : Window_Event()"; static void Window_Event(widget, e, client_data) Widget widget; XEvent * e; caddr_t client_data; { switch(e->type) { case KeyPress: printf("keyboard event"); break; case MotionNotify: printf("Motion event"); break; } dialog_shell= XtCreatePopupShell("dialog_shell", overrideShellWidgetClass, toplevel, shell_args, XtNumber(shell_args)); -------------------------------------------------