Well that's a pain. I think the callback registration may need to be
moved to the ewl_window to avoid that situation. The idea is that the
FB event handlers are used when an EWL application has control of the
FB, and the evas object events are for when the EWL object is placed
on a pre-existing evas. If you want to fix this, I would split out the
ecore event handlers additions into a separate function that is called
by the window realize callback that sets a flag so it will only add
the event handlers once. If you don't have time I should be able to
fix this tonight.

On 5/31/05, Simon Poole <[EMAIL PROTECTED]> wrote:
> I'm getting two EWL_CALLBACK_CLICKED events for every button click in my
> ewl_embed (running in a framebuffer Evas).  I think this is happening
> because EWL is registering twice to receive mouse events:
> 
>    1. ecore_event_handler_add(ECORE_FB_EVENT...) in ewl_ev_init(),
> called from ewl_init().
>    2. evas_object_event_callback_add(EVAS_CALLBACK...) in
> ewl_embed_realize_cb().
> 
> It looks like the same applies to KEY events, although I haven't tested
> this.
> 
> The most obvious fix is to remove the evas callback registration from
> ewl_embed.  Does this fit with the intention of how ewl_embed was
> supposed to be used?  E.g. I'm assuming that I am still supposed to use
> ewl_init() with ewl_embed?
> 
> --
> Simon Poole
> www.appliancestudio.com
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to