<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div><span style="font-weight: bold;">Hi Peter,</span></div><div>>> XQueryPointer(dpy,rootwin,None,None,&mousex,&mousey,None,None,None); // problem...<br>><br>>none of these may be NULL (or None, which is just 0 anyway). you do need to<br>>provide some valid pointers here.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">well, yesterday I tried with all pointers settled, X crashed. Today I try again, </span></div><div style="color:
rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"> // where is my mouse ?<br> int wx, wy;<br> int rootx, rooty;<br> Window theRoot, theChild;<br> unsigned int status;<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">
XQueryPointer(dpy,rootwin,&theRoot,&theChild,&rootx,&rooty,&wx,&wy,&status);</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">and now it works. I didn't try (yet) to read datas from pointers but </span><span>XQueryPointer</span><span style="font-weight: bold;"> return </span><span>true</span><span style="font-weight: bold;">. I guess I did some bullshit yesterday...<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new
york,times,serif; background-color: transparent; font-style: normal;">>> <br>>> while(stop==0) {<br>>> XNextEvent(dpy, &e);<br>>> if(e.type==Expose && e.xexpose.count<1) {<br>>> XFlush(dpy);<br>>> }<br>>> <br>>> switch(e.type){<br>>> case
KeyRelease : stop=1;break;<br>>> }<br>>> <br>>> }<br>>> XFreeCursor(dpy,theCursor);<br>>> XCloseDisplay(dpy);<br>>> <br>>> return 0;<br>>> }<br>>> <br>>> <br>>> <br>>> but, when I'm running it, X exits without complains.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">>are you saying your X server crashes when you run this? that shouldn't<br>>happen and would certainly be a bug.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new
roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">no this part is fine, I'm using it on some others tests I running, the crash occured at this line :</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">XQueryPointer(dpy,rootwin,None,None,&mousex,&mousey,None,None,None); <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent;
font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">for me setting a pointer to None, NULL, it's like sending data to the biggest trashcan of the universe, I guess I'm wrong...</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">>The Xorg.log is only for the X server, you're writing a client application<br>>and can't access it.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style:
normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">ok.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span style="font-weight: bold;"></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span style="font-weight: bold;"></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent;
font-style: normal;"><span style="font-weight: bold;">Thanks for all Peter.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">-Nicoo</span><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> </div> </div> </div></body></html>