From bd32e6a14e15c9f6fa447137649d38fcdeb08609 Mon Sep 17 00:00:00 2001 From: Hyunho Kang Date: Thu, 27 Oct 2016 10:13:11 +0900 Subject: [PATCH] Fix widget resume/pause by screen size Change-Id: Ife41f851ecfe9458169a4a15ee9f3decc8abfac8 Signed-off-by: Hyunho Kang --- widget_toolkit/src/compositor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/widget_toolkit/src/compositor.c b/widget_toolkit/src/compositor.c index 29dee1e..e17c71f 100644 --- a/widget_toolkit/src/compositor.c +++ b/widget_toolkit/src/compositor.c @@ -59,10 +59,12 @@ Ecore_Event_Handler *__visibility_listener = NULL; static bool __obj_is_visible(Evas_Object *obj) { int x, y, w, h; + int screen_w, screen_h; evas_object_geometry_get(obj, &x, &y, &w, &h); + ecore_wl_screen_size_get(&screen_w, &screen_h); - if (x >= 0 && x < w) { - _D("x %d, y %d w %d h %d", x, y, w, h); + if (x >= 0 && x < screen_w) { + _D("x %d, y %d w %d h %d, screen_w %d screen_h %d", x, y, w, h, screen_w, screen_h); return true; } -- 2.7.4