<div dir="ltr">Hi,<div>thank you for the response. I will take a look. </div><div><br></div><div>Its a project requirement, so cant do much about it :)</div><div><br></div><div>Best regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 5, 2018 at 9:18 PM, Adam Jackson <span dir="ltr"><<a href="mailto:ajax@redhat.com" target="_blank">ajax@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 2018-07-05 at 20:06 +0200, Nikola Radovanovic wrote:<br>
> Hello,<br>
> Can someone please point me to some documentation/samples on how to<br>
> do the following:<br>
> <br>
> I have to detect events (messages) that are issued when any of<br>
> attached screens (one or possibly more of them) will be repainted<br>
> (partially or completely). So any key press, new window, resize<br>
> window, mouse move etc.<br>
<br>
</span>For updated window content, you want the Damage extension's events. X<br>
doesn't have globally-available events for mouse motion though, sorry.<br>
<span class=""><br>
> What I am trying is to write a simple VNC viewer (server) for<br>
> Linux/Android and I have not yet managed to figure out how to<br>
> subscribe to such events in order to get 'paint' message and affected<br>
> rectangular area.<br>
<br>
</span>I mean, tigervnc already exists, but sure, write another one, why not.<br>
Do consider reading it though, unix/x0vncserver/*.cxx is pretty much<br>
what you're describing, including examples of how to register for and<br>
parse Damage events.<br>
<br>
- ajax<br>
</blockquote></div><br></div>