Enlightenment CVS committal Author : handyande Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/pager Modified Files: e_mod_main.c Log Message: Small tidy, trying to hunt a segv =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/pager/e_mod_main.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- e_mod_main.c 19 Jan 2005 16:08:19 -0000 1.28 +++ e_mod_main.c 20 Jan 2005 10:28:56 -0000 1.29 @@ -693,13 +693,12 @@ /* if we clicked, not moved - FIXME, this is a hack */ if (p->move && (p->xx == p->clickhackx) && (p->yy == p->clickhacky)) { - int x, y, w, h, xcount, ycount, cx, cy; + int x, y, w, h, xcount, ycount; E_Zone *zone; E_Desk *desk; zone = e_zone_current_get(con); e_zone_desk_count_get(zone, &xcount, &ycount); - evas_pointer_canvas_xy_get(e, &cx, &cy); w = p->fw; h = p->fh; @@ -712,7 +711,7 @@ top = p->fy + y * h; bottom = top + h; - if (left <= cx && cx < right && top <= cy && cy < bottom) + if (left <= p->xx && p->xx < right && top <= p->yy && p->yy < bottom) { desk = e_desk_at_xy_get(zone, x, y); e_desk_show(desk); ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs