[comp.windows.x] XGrabKeyboard and TWM

eric@eddie.MIT.EDU (Eric Van Tassell) (07/11/89)

	  Why do I get back a return code of GrabNotViewable when I do an
	  XGrabKeyboard while twm is running? The program works fine
	  without the windowmgr. Why is GrabNotViewable the same as
	  BadWindow? I am running X11R3 on a Sun 3/60, SunOS3.4, 8M,
	  b&w. TIA.

-- 
Eric Van Tassell(dlcdev!eric@eddie.mit.edu)
Progress Software Corp.
22B Cotton Rd.
Nashua, NH 03063 {603-882-2488}

rws@EXPO.LCS.MIT.EDU (07/11/89)

    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?