Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think!linus!cvbnet!pcolby From: pcolby@cello (Peter Colby bldg 4-1) Newsgroups: comp.windows.x Subject: Re: event mask to XGrabPointer et al. Message-ID: <299@cvbnet.Prime.COM> Date: 28 Dec 89 14:54:45 GMT References: <8912182057.AA05745@expire.lcs.mit.edu> <292@cvbnet.Prime.COM> Sender: postnews@cvbnet.Prime.COM Reply-To: pcolby@cello (Peter Colby bldg 4-1) Organization: Replace me with your organization Lines: 27 In-reply-to: aperez@caribe.uucp (Arturo Perez x6739) In article <292@cvbnet.Prime.COM>, aperez@caribe (Arturo Perez x6739) writes: > >Oh, BTW, there seem to be a lot of programs suffering from >X Error: BadCursor > Request Major code 1 () > Request Minor code 0 > ResourceID 0xfd880ee0 > Error Serial #3 > Current Serial #14 > This is an easy one (at least for me). BadCursor is a protocol error from XCreateWindow or XCreateSimpleWindow. What is probably happening is that the window attributes mask argument specifies CWCursor but that the actual .cursor element of the attributes structure is not being initialized before the call. The appropriate solution in this case is to #include and then set .cursor = XCreateFontCursor(display,cursor_shape) where cursor_shape is one of the cursor type constants defines in cursorfont.h. The structure is the last argument passed to XCreateWindow, the attributes mask is the next to last argument. Peter Colby = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = UUCP: {sun,decvax,linus}!cvbnet!pcolby ||| "We has met the enemy and he is us." UUCP: pcolby@robbie.prime.com ||| Pogo CSNET: pcolby@robbie.prime.com |||