From 24127f1a01c98016efb7ae5196cc410f67cf1287 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 9 Oct 2012 12:19:39 +0000 Subject: [PATCH] Set randr widget to changed when we receive the proper signals, regardless if monitor matches or not. Signed-off-by: Christopher Michael SVN revision: 77643 --- src/modules/conf_randr/e_smart_randr.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/modules/conf_randr/e_smart_randr.c b/src/modules/conf_randr/e_smart_randr.c index 58177ea6f..a4d985552 100644 --- a/src/modules/conf_randr/e_smart_randr.c +++ b/src/modules/conf_randr/e_smart_randr.c @@ -269,6 +269,8 @@ _e_smart_randr_layout_adjust(E_Smart_Data *sd, Evas_Object *obj) if (!sd) return; + sd->changed = EINA_TRUE; + /* get the geometry of this monitor */ e_layout_child_geometry_get(obj, &o.x, &o.y, &o.w, &o.h); @@ -292,13 +294,11 @@ _e_smart_randr_layout_adjust(E_Smart_Data *sd, Evas_Object *obj) { /* if this monitor is to the right, move it */ e_layout_child_move(mon, (o.x + o.w), m.y); - sd->changed = EINA_TRUE; } else if ((m.y >= (o.y + o.h))) { /* if this monitor is below, move it */ e_layout_child_move(mon, m.x, (o.y + o.h)); - sd->changed = EINA_TRUE; } else if (eina_rectangles_intersect(&o, &m)) { @@ -309,8 +309,6 @@ _e_smart_randr_layout_adjust(E_Smart_Data *sd, Evas_Object *obj) e_layout_child_move(mon, (o.x + o.w), m.y); else if ((m.y <= (o.y + o.h))) e_layout_child_move(mon, m.x, (o.y + o.h)); - - sd->changed = EINA_TRUE; } } @@ -328,6 +326,8 @@ _e_smart_randr_layout_reposition(E_Smart_Data *sd, Evas_Object *obj) if (!sd) return; + sd->changed = EINA_TRUE; + /* get this monitor geometry Before it was moved * * NB: This is returned in Virtual coordinates */ @@ -358,7 +358,6 @@ _e_smart_randr_layout_reposition(E_Smart_Data *sd, Evas_Object *obj) * NB: Currently, this will move This monitor to the * position of the old one. This is probably not ideal */ e_layout_child_move(mon, mx, my); - sd->changed = EINA_TRUE; } }