Fix widget resume/pause by screen size 31/94031/1
authorHyunho Kang <hhstark.kang@samsung.com>
Thu, 27 Oct 2016 01:13:11 +0000 (10:13 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Thu, 27 Oct 2016 01:16:53 +0000 (10:16 +0900)
Change-Id: Ife41f851ecfe9458169a4a15ee9f3decc8abfac8
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
widget_toolkit/src/compositor.c

index 29dee1e..e17c71f 100644 (file)
@@ -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;
        }