forked from enlightenment/enlightenment
Correctly calculate disabled monitor position(s).
Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84202
This commit is contained in:
parent
7df8dddb23
commit
132719c2b6
|
@ -175,6 +175,7 @@ e_smart_randr_monitors_create(Evas_Object *obj)
|
||||||
Ecore_X_Randr_Crtc *crtcs;
|
Ecore_X_Randr_Crtc *crtcs;
|
||||||
int ncrtcs = 0;
|
int ncrtcs = 0;
|
||||||
Evas_Coord gx = 0, gy = 0, gw = 0, gh = 0;
|
Evas_Coord gx = 0, gy = 0, gw = 0, gh = 0;
|
||||||
|
Evas_Coord nx = 0;
|
||||||
|
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
|
@ -255,7 +256,6 @@ e_smart_randr_monitors_create(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
Evas_Object *mon;
|
Evas_Object *mon;
|
||||||
Ecore_X_Randr_Output output;
|
Ecore_X_Randr_Output output;
|
||||||
static Evas_Coord nx = 0;
|
|
||||||
|
|
||||||
/* for each output, try to create a monitor */
|
/* for each output, try to create a monitor */
|
||||||
if (!(mon = e_smart_monitor_add(evas)))
|
if (!(mon = e_smart_monitor_add(evas)))
|
||||||
|
@ -280,7 +280,7 @@ e_smart_randr_monitors_create(Evas_Object *obj)
|
||||||
|
|
||||||
/* get the size of the largest mode */
|
/* get the size of the largest mode */
|
||||||
ecore_x_randr_mode_size_get(root, modes[0], &mw, &mh);
|
ecore_x_randr_mode_size_get(root, modes[0], &mw, &mh);
|
||||||
/* printf("\t\t\tOutput Size: %d %d\n", mw, mh); */
|
/* printf("\t\t\t\tOutput Size: %d %d\n", mw, mh); */
|
||||||
|
|
||||||
/* free any allocated memory from ecore_x_randr */
|
/* free any allocated memory from ecore_x_randr */
|
||||||
free(modes);
|
free(modes);
|
||||||
|
|
Loading…
Reference in New Issue