forked from enlightenment/enlightenment
shelf: fix autohide bug in last commit
SVN revision: 39389
This commit is contained in:
parent
2270cc87bd
commit
72b7a4bff1
|
@ -1386,26 +1386,30 @@ _e_shelf_cb_mouse_out(void *data, int type, void *event)
|
||||||
case E_GADCON_ORIENT_LEFT:
|
case E_GADCON_ORIENT_LEFT:
|
||||||
case E_GADCON_ORIENT_CORNER_LT:
|
case E_GADCON_ORIENT_CORNER_LT:
|
||||||
case E_GADCON_ORIENT_CORNER_LB:
|
case E_GADCON_ORIENT_CORNER_LB:
|
||||||
if ((ev->edge == E_ZONE_EDGE_LEFT) && (ev->x >= es->x + es->w))
|
if ((ev->edge == E_ZONE_EDGE_LEFT) &&
|
||||||
|
(ev->x >= es->x + es->w))
|
||||||
show = 0;
|
show = 0;
|
||||||
break;
|
break;
|
||||||
case E_GADCON_ORIENT_RIGHT:
|
case E_GADCON_ORIENT_RIGHT:
|
||||||
case E_GADCON_ORIENT_CORNER_RT:
|
case E_GADCON_ORIENT_CORNER_RT:
|
||||||
case E_GADCON_ORIENT_CORNER_RB:
|
case E_GADCON_ORIENT_CORNER_RB:
|
||||||
if ((ev->edge == E_ZONE_EDGE_RIGHT) && (ev->x < es->x))
|
if ((ev->edge == E_ZONE_EDGE_RIGHT) &&
|
||||||
show = 0;
|
(ev->x > es->w) || (-ev->x > es->w))
|
||||||
|
show = 0;
|
||||||
break;
|
break;
|
||||||
case E_GADCON_ORIENT_TOP:
|
case E_GADCON_ORIENT_TOP:
|
||||||
case E_GADCON_ORIENT_CORNER_TL:
|
case E_GADCON_ORIENT_CORNER_TL:
|
||||||
case E_GADCON_ORIENT_CORNER_TR:
|
case E_GADCON_ORIENT_CORNER_TR:
|
||||||
if ((ev->edge == E_ZONE_EDGE_TOP) && (ev->y > es->y + es->h))
|
if ((ev->edge == E_ZONE_EDGE_TOP) &&
|
||||||
show = 0;
|
(ev->y > es->y + es->h))
|
||||||
|
show = 0;
|
||||||
break;
|
break;
|
||||||
case E_GADCON_ORIENT_BOTTOM:
|
case E_GADCON_ORIENT_BOTTOM:
|
||||||
case E_GADCON_ORIENT_CORNER_BL:
|
case E_GADCON_ORIENT_CORNER_BL:
|
||||||
case E_GADCON_ORIENT_CORNER_BR:
|
case E_GADCON_ORIENT_CORNER_BR:
|
||||||
if ((ev->edge == E_ZONE_EDGE_BOTTOM) && (ev->y < es->y))
|
if ((ev->edge == E_ZONE_EDGE_BOTTOM) &&
|
||||||
show = 0;
|
(ev->y > es->h) || (-ev->y > es->h))
|
||||||
|
show = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue