Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: menus.c Log Message: Fix incorrect menu placement in certain situations. =================================================================== RCS file: /cvs/e/e16/e/src/menus.c,v retrieving revision 1.281 retrieving revision 1.282 diff -u -3 -r1.281 -r1.282 --- menus.c 11 Jul 2007 08:54:19 -0000 1.281 +++ menus.c 11 Jul 2007 09:06:59 -0000 1.282 @@ -273,9 +273,8 @@ MenuShow(Menu * m, char noshow) { EWin *ewin; - int x, y; - int wx = 0, wy = 0; /* wx, wy added to stop menus */ - int w, h, mw, mh; /* from appearing offscreen */ + int x, y, w, h; + int wx, wy, mw, mh; int head_num = 0; if (m->shown) @@ -309,8 +308,9 @@ mw = m->w; mh = m->h; - wx = Mode.events.x - EoGetX(DesksGetCurrent()) - x - (w / 2); - wy = Mode.events.y - EoGetY(DesksGetCurrent()) - y - (h / 2); + EQueryPointer(NULL, &wx, &wy, NULL, NULL); + wx -= EoGetX(DesksGetCurrent()) + x + (w / 2); + wy -= EoGetY(DesksGetCurrent()) + y + (h / 2); if (Conf.menus.onscreen) { Border *b; ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs