Thanks for the advice but evas_canvas_event_feed_mouse_down is never called.

The cause appears to be focus related in elm and not due to mouse events. I 
have attached the back trace.
The environment is vanilla Manjaro and it occurs within the default xfce 
desktop as well as in enlightenment within Zephyr.

Any other thoughts?

Thanks,
Andrew

#1  0x00007ffff67dc7e4 in _item_select (it=<optimized out>) at elm_list.c:1413
#2  0x00007ffff67df999 in _elm_list_item_selected_set (
    eo_item=<optimized out>, item=0x968500, selected=<optimized out>)
    at elm_list.c:2908
#3  0x00007ffff67d7123 in elm_obj_list_item_selected_set (
    selected=selected@entry=1 '\001') at elm_list_item.eo.c:12
#4  0x00007ffff67dfe08 in elm_list_item_selected_set (obj=<optimized out>, 
    selected=selected@entry=1 '\001') at elm_list_item.eo.c:124
#5  0x00007ffff67e049b in _elm_list_elm_widget_on_focus (obj=<optimized out>, 
    sd=<optimized out>) at elm_list.c:1292
#6  0x00007ffff685a946 in elm_obj_widget_on_focus () at elm_widget.eo.c:343
#7  0x00007ffff686c5ce in _parent_focus (obj=0x80000009c000004f)
    at elm_widget.c:837
#8  0x00007ffff685bd94 in elm_obj_widget_focus_steal () at elm_widget.eo.c:427
#9  0x00007ffff686ba36 in elm_widget_focus_steal (obj=<optimized out>)
    at elm_widget.eo.c:1406
#10 0x00007ffff686c835 in _elm_widget_focus_cycle (obj=0x80000009c000004f, 
    _pd=<optimized out>, dir=ELM_FOCUS_NEXT) at elm_widget.c:1857
#11 0x00007ffff685ab4c in elm_obj_widget_focus_cycle (
    dir=dir@entry=ELM_FOCUS_NEXT) at elm_widget.eo.c:351
#12 0x00007ffff686b017 in elm_widget_focus_cycle (obj=<optimized out>, 
---Type <return> to continue, or q <return> to quit---
    dir=ELM_FOCUS_NEXT) at elm_widget.eo.c:1284
#13 0x00007ffff686aaab in _elm_widget_focus_restore (obj=<optimized out>, 
    _pd=<optimized out>) at elm_widget.c:2877
#14 0x00007ffff685b974 in elm_obj_widget_focus_restore ()
    at elm_widget.eo.c:407
#15 0x00007ffff686b8c6 in elm_widget_focus_restore (
    obj=obj@entry=0x80000002c0000017) at elm_widget.eo.c:1382
#16 0x00007ffff6877142 in _elm_win_focus_in (ee=<optimized out>)
    at elm_win.c:1026
#17 0x00007fffe5ea38c3 in _ecore_evas_x_event_window_focus_in (
    data=<optimized out>, type=<optimized out>, event=0x9aa5b0)
    at modules/ecore_evas/engines/x/ecore_evas_x.c:1395
#18 0x00007fffee8ed6b5 in _ecore_call_handler_cb (event=<optimized out>, 
    type=<optimized out>, data=<optimized out>, func=<optimized out>)
    at lib/ecore/ecore_private.h:359
#19 _ecore_event_call () at lib/ecore/ecore_events.c:562
#20 0x00007fffee8f4db9 in _ecore_main_loop_iterate_internal (
    once_only=once_only@entry=0) at lib/ecore/ecore_main.c:1947
#21 0x00007fffee8f50d7 in ecore_main_loop_begin ()
    at lib/ecore/ecore_main.c:982
#22 0x00007ffff67e2fe5 in elm_run () at elm_main.c:1095
#23 0x00000000004101c1 in elm_main (argc=argc@entry=1, 
    argv=argv@entry=0x7fffffffe778) at edi_main.c:916
-----
Andy Williams
blog:   http://ajwillia.ms
web:    http://andywilliams.me





> On 12 Mar 2015, at 23:34, Carsten Haitzler (The Rasterman) 
> <[email protected]> wrote:
> 
> On Thu, 12 Mar 2015 14:47:45 +0000 Andrew Williams <[email protected]> 
> said:
> 
>> Hi,
>> 
>> I have a problem that my elm_list items are getting “clicked” when the UI
>> shows. I add items to the list which is in a small window. On some platforms
>> when I show the window the focus manager seems to cause a “clicked” event to
>> fire. I’m just using the standard elm_list_item_append call with the smart
>> callback function and nothing custom in the click handling.
> 
> what do you mean "on some platforms" ? i am suspecting you mean gnome, kde,
> xfce, lxde etc. like platforms? if so - gdb and set a breakpoint for
> evas_event_feed_mouse_down then run the app and see what is causing this mouse
> down. i suspect it comes from the ecore event callback for mouse downs... 
> which
> means it's coming from x11 (someone/something is literally generating a mouse
> click). if your description is right.
> 
>> Can anyone shed light about how to avoid this or if I should work around it?
>> Should the click handler be determining if the event was truly a click? (and
>> if so how?)
>> 
>> Thanks,
>> Andy
>> 
>> -----
>> Andy Williams
>> blog:        http://ajwillia.ms
>> web: http://andywilliams.me
>> 
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, 
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for 
>> all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the 
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> enlightenment-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 
> 
> -- 
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    [email protected]
> 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to