forked from enlightenment/enlightenment
When we clone/un-clone, also set a Changed on the position so that
Apply will handle new geometry for the monitor. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 82327
This commit is contained in:
parent
4fadc7bf7f
commit
4f572243c1
|
@ -639,9 +639,15 @@ e_smart_monitor_clone_add(Evas_Object *obj, Evas_Object *mon)
|
||||||
|
|
||||||
/* set appropriate changes */
|
/* set appropriate changes */
|
||||||
if (sd->orig.cloned != sd->current.cloned)
|
if (sd->orig.cloned != sd->current.cloned)
|
||||||
|
{
|
||||||
sd->changes |= E_SMART_MONITOR_CHANGED_CLONED;
|
sd->changes |= E_SMART_MONITOR_CHANGED_CLONED;
|
||||||
|
sd->changes |= E_SMART_MONITOR_CHANGED_POSITION;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
sd->changes &= ~(E_SMART_MONITOR_CHANGED_CLONED);
|
sd->changes &= ~(E_SMART_MONITOR_CHANGED_CLONED);
|
||||||
|
sd->changes &= ~(E_SMART_MONITOR_CHANGED_POSITION);
|
||||||
|
}
|
||||||
|
|
||||||
/* set cloned parent */
|
/* set cloned parent */
|
||||||
msd->parent = obj;
|
msd->parent = obj;
|
||||||
|
@ -764,9 +770,6 @@ e_smart_monitor_clone_del(Evas_Object *obj, Evas_Object *mon)
|
||||||
else
|
else
|
||||||
msd->changes &= ~(E_SMART_MONITOR_CHANGED_CLONED);
|
msd->changes &= ~(E_SMART_MONITOR_CHANGED_CLONED);
|
||||||
|
|
||||||
/* set parent object */
|
|
||||||
msd->parent = NULL;
|
|
||||||
|
|
||||||
x = msd->cx;
|
x = msd->cx;
|
||||||
y = msd->cy;
|
y = msd->cy;
|
||||||
w = msd->cw;
|
w = msd->cw;
|
||||||
|
@ -776,12 +779,18 @@ e_smart_monitor_clone_del(Evas_Object *obj, Evas_Object *mon)
|
||||||
*
|
*
|
||||||
* NB: Needed in the case that we have no previous setup, we are in a clone
|
* NB: Needed in the case that we have no previous setup, we are in a clone
|
||||||
* situation (from X), and we were not manually moved */
|
* situation (from X), and we were not manually moved */
|
||||||
|
if (msd->orig.cloned)
|
||||||
|
{
|
||||||
if ((msd->cw == 0) || (msd->ch == 0))
|
if ((msd->cw == 0) || (msd->ch == 0))
|
||||||
{
|
{
|
||||||
e_layout_child_geometry_get(mon, &x, &y, &w, &h);
|
e_layout_child_geometry_get(mon, &x, &y, &w, &h);
|
||||||
msd->current.x = x;
|
msd->current.x = x;
|
||||||
msd->current.y = y;
|
msd->current.y = y;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* set parent object */
|
||||||
|
msd->parent = NULL;
|
||||||
|
|
||||||
/* restore to starting size */
|
/* restore to starting size */
|
||||||
e_layout_child_resize(mon, w, h);
|
e_layout_child_resize(mon, w, h);
|
||||||
|
|
Loading…
Reference in New Issue