From 4eebdb484f6a5ab60666bf4ec87563466ed0562b Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 19 Feb 2013 10:57:01 +0000 Subject: [PATCH] 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 SVN revision: 84155 Signed-off-by: Deon Thomas --- 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 23772a599..2a2661bbf 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 */