From: Enlightenment S. <no-...@en...> - 2011-02-23 12:08:48
|
Log: elfe : Fix desktop number detection Fix the desktop number position when Width is different than 480px. Author: captainigloo Date: 2011-02-23 04:08:41 -0800 (Wed, 23 Feb 2011) New Revision: 57263 Trac: http://trac.enlightenment.org/e/changeset/57263 Modified: trunk/E-MODULES-EXTRA/elfe/src/desktop.c Modified: trunk/E-MODULES-EXTRA/elfe/src/desktop.c =================================================================== --- trunk/E-MODULES-EXTRA/elfe/src/desktop.c 2011-02-23 11:53:29 UTC (rev 57262) +++ trunk/E-MODULES-EXTRA/elfe/src/desktop.c 2011-02-23 12:08:41 UTC (rev 57263) @@ -69,7 +69,7 @@ for (i = 0; i < ELFE_DESKTOP_NUM; i++) { Evas_Object *o_edje = elm_layout_edje_get(eina_list_nth(desk->selector_objs, i)); - if (x < (i+1) * 480 && x >= i*480) + if ( (x < ((i+1) * w)) && (x >= ( i * w))) { desk->current_desktop = i; edje_object_signal_emit(o_edje, "select", "elfe"); |