Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/pager Modified Files: e_mod_main.c Log Message: pager screwup should be fixed now. i cant test as no xserver i have can do the xrandr stuff that has the bug.. either way... :) (well i do have 1... but its a pita to test it) =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/pager/e_mod_main.c,v retrieving revision 1.98 retrieving revision 1.99 diff -u -3 -r1.98 -r1.99 --- e_mod_main.c 25 Jun 2005 06:54:22 -0000 1.98 +++ e_mod_main.c 27 Jun 2005 07:10:42 -0000 1.99 @@ -1246,11 +1246,18 @@ Pager_Face *face; E_Event_Container_Resize *ev; Evas_List *l; - Evas_Coord w, h, lw, lh; + Evas_Coord w, h, lw, lh, dw, dh, padw, padh; face = data; ev = event; if (face->zone->container != ev->container) return 1; + + evas_object_geometry_get(face->table_object, NULL, NULL, &lw, &lh); + if (face->xnum > 0) dw = lw / face->xnum; + else dw = 0; + if (face->ynum > 0) dh = lh / face->ynum; + else dh = 0; + for (l = face->desks; l; l = l->next) { Pager_Desk *pd; @@ -1266,10 +1273,17 @@ w = face->fw; h = face->fh; evas_object_geometry_get(face->table_object, NULL, NULL, &lw, &lh); + padw = w - lw; + padh = h - lh; + if ((face->xnum * face->zone->w) > (face->ynum * face->zone->h)) - w = face->xnum * ((face->zone->w * lh) / face->zone->h); + { + w = (face->xnum * ((face->zone->w * dh) / face->zone->h)) + padw; + } else - h = face->ynum * ((face->zone->h * lw) / face->zone->w); + { + h = (face->ynum * ((face->zone->h * dw) / face->zone->w)) + padh; + } e_gadman_client_resize(face->gmc, w, h); return 1; } ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs