princeamd pushed a commit to branch enlightenment-0.17.
commit 4eebdb484f6a5ab60666bf4ec87563466ed0562b
Author: Christopher Michael <[email protected]>
Date: Tue Feb 19 10:57:01 2013 +0000
Backport: ad6d691 :: Pack the monitor into the grid first, then do setup.
Add function call to setup initial background preview.
Signed-off-by: Christopher Michael <[email protected]>
SVN revision: 84155
Signed-off-by: Deon Thomas <[email protected]>
---
src/modules/conf_randr/e_smart_randr.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/modules/conf_randr/e_smart_randr.c
b/src/modules/conf_randr/e_smart_randr.c
index 23772a5..2a2661b 100644
--- a/src/modules/conf_randr/e_smart_randr.c
+++ b/src/modules/conf_randr/e_smart_randr.c
@@ -195,6 +195,9 @@ e_smart_randr_monitors_create(Evas_Object *obj)
/* add this monitor to our list */
sd->monitors = eina_list_append(sd->monitors, mon);
+ /* pack this monitor into the grid */
+ evas_object_grid_pack(sd->o_grid, mon, cx, cy, cw, ch);
+
/* tell monitor what the virtual grid is */
e_smart_monitor_grid_set(mon, sd->o_grid);
@@ -204,8 +207,8 @@ e_smart_randr_monitors_create(Evas_Object *obj)
/* tell monitor what output it uses */
e_smart_monitor_output_set(mon, outputs[j]);
- /* pack this monitor into the grid */
- evas_object_grid_pack(sd->o_grid, mon, cx, cy, cw, ch);
+ /* tell monitor to set the background preview */
+ e_smart_monitor_background_set(mon, cx, cy);
}
/* free any allocated memory from ecore_x_randr */
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev