forked from enlightenment/enlightenment
E (RandR): Do not 'snap' monitors on rotation. It changes the position
of them in the layout and thus causes problems when we Apply these changes. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 77720
This commit is contained in:
parent
09fb8b7da5
commit
236117cd86
|
@ -35,7 +35,7 @@ static void _e_smart_randr_layout_adjust(E_Smart_Data *sd, Evas_Object *obj);
|
||||||
static void _e_smart_randr_layout_reposition(E_Smart_Data *sd, Evas_Object *obj);
|
static void _e_smart_randr_layout_reposition(E_Smart_Data *sd, Evas_Object *obj);
|
||||||
|
|
||||||
static void _e_smart_cb_monitor_resized(void *data, Evas_Object *obj, void *event __UNUSED__);
|
static void _e_smart_cb_monitor_resized(void *data, Evas_Object *obj, void *event __UNUSED__);
|
||||||
static void _e_smart_cb_monitor_rotated(void *data, Evas_Object *obj, void *event __UNUSED__);
|
static void _e_smart_cb_monitor_rotated(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__);
|
||||||
static void _e_smart_cb_monitor_moved(void *data, Evas_Object *obj, void *event __UNUSED__);
|
static void _e_smart_cb_monitor_moved(void *data, Evas_Object *obj, void *event __UNUSED__);
|
||||||
static void _e_smart_cb_monitor_toggled(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__);
|
static void _e_smart_cb_monitor_toggled(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__);
|
||||||
static void _e_smart_cb_monitor_deleted(void *data __UNUSED__, Evas *evas __UNUSED__, Evas_Object *obj, void *event __UNUSED__);
|
static void _e_smart_cb_monitor_deleted(void *data __UNUSED__, Evas *evas __UNUSED__, Evas_Object *obj, void *event __UNUSED__);
|
||||||
|
@ -388,7 +388,7 @@ _e_smart_cb_monitor_resized(void *data, Evas_Object *obj, void *event __UNUSED__
|
||||||
/* callback received from the monitor object to let us know that it was
|
/* callback received from the monitor object to let us know that it was
|
||||||
* rotated, and we should adjust position of any adjacent monitors */
|
* rotated, and we should adjust position of any adjacent monitors */
|
||||||
static void
|
static void
|
||||||
_e_smart_cb_monitor_rotated(void *data, Evas_Object *obj, void *event __UNUSED__)
|
_e_smart_cb_monitor_rotated(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
|
||||||
{
|
{
|
||||||
Evas_Object *o_randr;
|
Evas_Object *o_randr;
|
||||||
E_Smart_Data *sd;
|
E_Smart_Data *sd;
|
||||||
|
@ -397,11 +397,7 @@ _e_smart_cb_monitor_rotated(void *data, Evas_Object *obj, void *event __UNUSED__
|
||||||
if (!(sd = evas_object_smart_data_get(o_randr)))
|
if (!(sd = evas_object_smart_data_get(o_randr)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_e_smart_randr_layout_adjust(sd, obj);
|
evas_object_smart_callback_call(o_randr, "changed", NULL);
|
||||||
|
|
||||||
if (sd->changed)
|
|
||||||
evas_object_smart_callback_call(o_randr, "changed", NULL);
|
|
||||||
|
|
||||||
sd->changed = EINA_FALSE;
|
sd->changed = EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue