<div dir="ltr"><div class="gmail_quote">2010/1/26 Erez D <span dir="ltr"><<a href="mailto:erez0001@gmail.com">erez0001@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">i need your help<br><br><br>i am trying to grab a cursor image (i have the cursor's XID).<br><br>xlib doesn't have any functions that does that.<br>xfixes have a function that reads the cursor image, but only the current cursor<br>
and i am trying to get a cursor which i have i'ts XID.<br><br>XCopyArea(display,mycursor,...) gives me a "bad drawable" error.<br><br>anyone ?<br></div></blockquote><div><br>Not a direct X answer, but rather a way to approach it.<br>
Draw the cursor image you have the XID above the captured image you have in the proper location for it.<br>So you will have to combine two bitmaps into one.<br><br>Don't forget to mask the pointer prior to add it into the "background" image you place it on.<br>
<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"></div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br>Ido<br><a href="http://ik.homelinux.org/">http://ik.homelinux.org/</a><br></div>