Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ogicse!mintaka!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Question about DecWindows and KeyPress Event Message-ID: <9010240300.AA07721@Larry.McRCIM.McGill.EDU> Date: 24 Oct 90 03:00:08 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 22 > I am experimenting with the KeyPress event. I set up the event > handler by calling XtAddEventHandler with the KeyPressMask. When I > run my program on a Sun and I press a key, the event is recognized. > My problem occurs when my client machine is a Sun and my server > machine is a DecStation 3100 running Ultrix 4.0 and DecWindows. It > doesn't seem to recognize the event when I press a key. (Note: I > tried the ButtonPressMask to see if I was setting up my event handler > correctly and the ButtonPress event was recognized.) I feel sure the problem is that you aren't setting up the input hint correctly, and that the window manager running on the Sun lets you get away with this while the window manager on the DECstation doesn't. See the ICCCM, section 4.1.7 in particular and sections 4.2.7 and 6.1 for more information. See also the XWMHints structure documentation in the Xlib document. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu