How to detect (subscribe to) messages that causes screen repaint

Nikola Radovanovic nikoladsp at gmail.com
Thu Jul 5 19:40:24 UTC 2018


Hi,
thank you for the response. I will take a look.

Its a project requirement, so cant do much about it :)

Best regards

On Thu, Jul 5, 2018 at 9:18 PM, Adam Jackson <ajax at redhat.com> wrote:

> On Thu, 2018-07-05 at 20:06 +0200, Nikola Radovanovic wrote:
> > Hello,
> > Can someone please point me to some documentation/samples on how to
> > do the following:
> >
> > I have to detect events (messages) that are issued when any of
> > attached screens (one or possibly more of them) will be repainted
> > (partially or completely). So any key press, new window, resize
> > window, mouse move etc.
>
> For updated window content, you want the Damage extension's events. X
> doesn't have globally-available events for mouse motion though, sorry.
>
> > What I am trying is to write a simple VNC viewer (server) for
> > Linux/Android and I have not yet managed to figure out how to
> > subscribe to such events in order to get 'paint' message and affected
> > rectangular area.
>
> I mean, tigervnc already exists, but sure, write another one, why not.
> Do consider reading it though, unix/x0vncserver/*.cxx is pretty much
> what you're describing, including examples of how to register for and
> parse Damage events.
>
> - ajax
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg/attachments/20180705/92f75919/attachment.html>


More information about the xorg mailing list