[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: How to detect (subscribe to) messages that causes screen repaint
From: Nikola Radovanovic <nikoladsp () gmail ! com>
Date: 2018-07-05 19:40:24
Message-ID: CAH3us8Tsx1gebPQ9WeN-Z=gJBM38=h3+YYFZh+gupqHbLHU-tQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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
>
[Attachment #5 (text/html)]
<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>
[Attachment #6 (text/plain)]
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic