projects
/
platform
/
core
/
appfw
/
widget-viewer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce3b93a
)
Fix widget resume/pause by screen size
31/94031/1
author
Hyunho Kang
<hhstark.kang@samsung.com>
Thu, 27 Oct 2016 01:13:11 +0000
(10:13 +0900)
committer
Hyunho 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
patch
|
blob
|
history
diff --git
a/widget_toolkit/src/compositor.c
b/widget_toolkit/src/compositor.c
index
29dee1e
..
e17c71f
100644
(file)
--- 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;
}