2010/1/26 Erez D <erez0...@gmail.com> > i need your help > > > i am trying to grab a cursor image (i have the cursor's XID). > > xlib doesn't have any functions that does that. > xfixes have a function that reads the cursor image, but only the current > cursor > and i am trying to get a cursor which i have i'ts XID. > > XCopyArea(display,mycursor,...) gives me a "bad drawable" error. > > anyone ? >
Not a direct X answer, but rather a way to approach it. Draw the cursor image you have the XID above the captured image you have in the proper location for it. So you will have to combine two bitmaps into one. Don't forget to mask the pointer prior to add it into the "background" image you place it on. > > _______________________________________________ > Linux-il mailing list > Linux-il@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > > Ido http://ik.homelinux.org/
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il