Path: utzoo!attcan!uunet!cs.utexas.edu!usc!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: XGrabKeyboard and TWM Message-ID: <8907110032.AA01258@expire.lcs.mit.edu> Date: 11 Jul 89 00:32:40 GMT References: <12177@eddie.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 11 Why do I get back a return code of GrabNotViewable when I do an XGrabKeyboard while twm is running? Probably because (assuming your server is correct), according to the documentation, the window you are giving as the grab_window isn't viewable. Why is GrabNotViewable the same as BadWindow? They are elements from two different enumerations, why should you care if they happen to have the same numeric value?