Hi;

On Tue, 2007-08-21 at 13:50 +0300, Kate Alhola wrote:
> When running clutter test-event with eglx  device with sylus, i
> got only [stage] MOTION *source* events, not any button press
> or release events.

Hmm, that is strange. Im still developing the newer per actor event
stuff in trunk and mainly working against glx backend. Though I suspect
its something wrong with the picking (see below);

> 
> It feels somehow related to bug 457 .
> 

Well maybe in a roudabout way - My guess is you have a 16bpp display and
there is something wrong with the picking - how clutter translates an on
screen position to an actor. 

Every actor has a unique ID which during this translation is converted
into a color value and each actor (offscreen) paints a silhouette of
itself in this color. The pixel at the requested pos is then read from
the framebuffer and its color then mapped back to the target actor.
See _clutter_do_pick in clutter-main.c . It probably worth adding some
debug stuff to that function to see what color is being read back and
maybe even dumping a full readpixels of the framebuffer to disk to check
exactly what is getting painted. 

Note the above is known to work for a 16bpp GLX display and *should*
work for egl as well. It could be a bug in the EGL/GL ES implementation
you are using or clutter doing something dumb. Either way it needs
further investigation - if you can look into it with your EGL
implementation it would be greatly appreciated.

Hope that all makes sense;

  -- Matthew


-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to