From 24d5040564093287883a64d56a222d34bdb7e849 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 11 Oct 2012 14:28:51 +0000 Subject: [PATCH] E (RandR): If we have a crtc when getting monitor geometry, then use that for width & height. Signed-off-by: Christopher Michael SVN revision: 77883 --- src/modules/conf_randr/e_smart_monitor.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 0ef6eaed2..3002f0978 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -411,10 +411,14 @@ e_smart_monitor_crtc_geometry_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y { if (x) *x = crtc->geometry.x; if (y) *y = crtc->geometry.y; + if (w) *w = crtc->geometry.w; + if (h) *h = crtc->geometry.h; + } + else + { + if (w) *w = sd->current.mode->width; + if (h) *h = sd->current.mode->height; } - - if (w) *w = sd->current.mode->width; - if (h) *h = sd->current.mode->height; } else {