avoid emitting shelf signals and toggling visibility constantly when shelf is already visible
SVN revision: 75253
This commit is contained in:
parent
7f3639f071
commit
b2ef5f76b1
|
@ -1610,11 +1610,14 @@ _e_shelf_cb_mouse_in(void *data, int type, void *event)
|
|||
}
|
||||
if (!es->popup) return ECORE_CALLBACK_PASS_ON;
|
||||
if (ev->win == es->popup->evas_win)
|
||||
{
|
||||
if (es->hidden || (!es->toggle))
|
||||
{
|
||||
edje_object_signal_emit(es->o_base, "e,state,focused", "e");
|
||||
e_shelf_toggle(es, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (type == ECORE_EVENT_MOUSE_MOVE)
|
||||
{
|
||||
Ecore_Event_Mouse_Move *ev;
|
||||
|
@ -1622,11 +1625,14 @@ _e_shelf_cb_mouse_in(void *data, int type, void *event)
|
|||
ev = event;
|
||||
if (!es->popup) return ECORE_CALLBACK_PASS_ON;
|
||||
if (ev->event_window == es->popup->evas_win)
|
||||
{
|
||||
if (es->hidden || (!es->toggle))
|
||||
{
|
||||
edje_object_signal_emit(es->o_base, "e,state,focused", "e");
|
||||
e_shelf_toggle(es, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
return ECORE_CALLBACK_PASS_ON;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue