I have a problem I'm actually recoding the RFB protocol in my software to comunicate with a VNC Server, and I want to know how to get the size of the server Desktop Size. I have allready test the framebuffer_width inside of the serverInit message but it is not representing the reel size of desktop I don't know how to get it ?
My second question is to send a PointerEvent message to the server. To move the mouse, actually in my software I set the x and y of the mouse to position {0, 0}, when I send this to the VNC server it works successfully, but when I add 5 to the x position it doesn't move 5 pixel it move bigger than what I want, I don't understand why???? can you help me please ?
Thanks for your answers !
Sounds like both of your problems could be a scaling issue in your client.
Some questions that might help you answer your own question (since you really need to post more information if you want a definitive answer):
BTW, I've found the official RFB documentation to be somewhat lacking and I think these links are better for RFB reference: