forked from enlightenment/enlightenment
only post-adjust menu position for non-submenus
ticket #1802 SVN revision: 79403
This commit is contained in:
parent
5e139f8de9
commit
36af3ea6bb
|
@ -1133,6 +1133,8 @@ e_menu_idler_before(void)
|
||||||
}
|
}
|
||||||
if (((m->cur.x) != (m->prev.x)) ||
|
if (((m->cur.x) != (m->prev.x)) ||
|
||||||
((m->cur.y) != (m->prev.y)))
|
((m->cur.y) != (m->prev.y)))
|
||||||
|
{
|
||||||
|
if (!m->parent_item)
|
||||||
{
|
{
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
|
|
||||||
|
@ -1141,6 +1143,7 @@ e_menu_idler_before(void)
|
||||||
m->cur.x = x + w - m->cur.w;
|
m->cur.x = x + w - m->cur.w;
|
||||||
if ((m->cur.y + m->cur.h) > (y + h))
|
if ((m->cur.y + m->cur.h) > (y + h))
|
||||||
m->cur.y = y + h - m->cur.h;
|
m->cur.y = y + h - m->cur.h;
|
||||||
|
}
|
||||||
m->prev.x = m->cur.x;
|
m->prev.x = m->cur.x;
|
||||||
m->prev.y = m->cur.y;
|
m->prev.y = m->cur.y;
|
||||||
ecore_evas_move(m->ecore_evas, m->cur.x, m->cur.y);
|
ecore_evas_move(m->ecore_evas, m->cur.x, m->cur.y);
|
||||||
|
|
Loading…
Reference in New Issue