Getting screen coordinate of a window

Michael Grunditz michael.grunditz at gmail.com
Mon Jan 22 01:52:19 CET 2024


In message <7d6a5e265b.mickenx at armx6>
          Michael Grunditz <michael.grunditz at gmail.com> wrote:

> Hello!

> Can I get screen coordinates of a window? I would like to be able to
> caputure absolute mouse events and convert them to the window coordinate
> system. I don't want to have relative mouse movement like I see in many
> examples. In my context it doesn't work very well.

> BTW the handle_relative_motion never seems to return anything. Is there a
> configuration that I need? Would be terific if I could by some function
> get window internal coordinates, but handle_relative_motion might not be
> something for that?

> I also want to know if there are routines better suited  than memcpy for
> ploting large buffers? I have noticed that if I put something in a loop
> without a little delay the system crawls. Is the Gui not preemptive? As
> little as 10ns is enough.

> I plot 640x480x4. It acts a bit strange. Each second a frame takes less
> than 1/60 seconds. There are 3 frames that runs slower and back to quick.

> I have nano sleep that is based on that timing.

> /Michael

To follow up the memcpy issue .. with Genode::memcpy I get about 5 fps. 
But in this very even and nice situation some neon code made it 60fps.

Happy!

Michael



More information about the users mailing list