projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d887b
)
e_comp_wl: add null check to avoid crash if client is no sub surface and needs to...
04/43904/1
author
Gwanglim Lee
<gl77.lee@samsung.com>
Wed, 15 Jul 2015 07:28:01 +0000
(16:28 +0900)
committer
Gwanglim Lee
<gl77.lee@samsung.com>
Wed, 15 Jul 2015 07:28:01 +0000
(16:28 +0900)
Change-Id: I8713d934b0da7a5a54deea9d456e44bc8683d356
src/bin/e_comp_wl.c
patch
|
blob
|
history
diff --git
a/src/bin/e_comp_wl.c
b/src/bin/e_comp_wl.c
index a3fe453f0fb19862cc9d268722e8138f23a07f09..4eae50b54c699988e6298b14ed11a136e6b07977 100644
(file)
--- a/
src/bin/e_comp_wl.c
+++ b/
src/bin/e_comp_wl.c
@@
-213,8
+213,16
@@
_e_comp_wl_map_apply(E_Client *ec)
sdata = ec->comp_data->sub.data;
if (sdata)
{
- dx = sdata->parent->x + sdata->position.x;
- dy = sdata->parent->y + sdata->position.y;
+ if (sdata->parent)
+ {
+ dx = sdata->parent->x + sdata->position.x;
+ dy = sdata->parent->y + sdata->position.y;
+ }
+ else
+ {
+ dx = sdata->position.x;
+ dy = sdata->position.y;
+ }
}
else
{