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 {