<div dir="ltr"><br clear="all"><br><br><div class="gmail_quote">On Tue, Jan 26, 2010 at 13:16, Erez D <span dir="ltr">&lt;<a href="mailto:erez0001@gmail.com">erez0001@gmail.com</a>&gt;</span> wrote:<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"><br><br><div class="gmail_quote"><div class="im">On Tue, Jan 26, 2010 at 1:04 PM, ik <span dir="ltr">&lt;<a href="mailto:idokan@gmail.com" target="_blank">idokan@gmail.com</a>&gt;</span> wrote:<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"><div class="gmail_quote">2010/1/26 Erez D <span dir="ltr">&lt;<a href="mailto:erez0001@gmail.com" target="_blank">erez0001@gmail.com</a>&gt;</span><div><div></div><div><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&#39;s XID).<br><br>xlib doesn&#39;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&#39;ts XID.<br><br>XCopyArea(display,mycursor,...)  gives me a &quot;bad drawable&quot; error.<br><br>anyone ?<br></div></blockquote></div></div><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></div></div></div></blockquote></div><div><br>i didn&#39;t really get wht you mean, but drawing using the cursor XID i have gives me a &quot;bad drawable&quot; error.<br>

</div></div></div></blockquote><div><br>You have the image you captured of the &quot;desktop&quot; (rootwindow) right ?<br>You know what is the handle of the mouse cursor right ?<br><br>Now tranlsate the mouse cursor handle to it&#39;s image. then paint it above the &quot;desktop&quot; image at X,Y and you have it.<br>

Unless I&#39;m completely not understanding what you wish to do.<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 class="gmail_quote"><div>
 <br></div><div class="im"><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 class="gmail_quote"><div>Don&#39;t forget to mask the pointer prior to add it into the &quot;background&quot; 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" target="_blank">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/" target="_blank">http://ik.homelinux.org/</a><br></div>
</blockquote></div></div><br></div>
</blockquote></div><br></div>