move the part of code for fetch transient_for in eval time to _e_shell_surface_parent...
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 11 Jul 2014 13:15:22 +0000 (09:15 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 26 Aug 2014 14:10:38 +0000 (10:10 -0400)
commite5f293214dc69022596e662db471c6323182fa1c
tree19503ee447feab5d4f7176a9ee325e6bdfe096a6
parent6248f11b80bf6b9fe61a73e53bd9bf697dbe276a
move the part of code for fetch transient_for in eval time to _e_shell_surface_parent_set().

Summary:
we need to set ec->parent before eval time.
that's because client can request to commit surface calling shell.configure() before eval time.
in this case, ec->parent isn't set yet, configure(move) will be failed.

in order to fix it, we have to set ec->parent in _e_shell_surface_parent_set() before eval time,
but we should check if ec already have parent, and if so, remove its parent's transients before change the value of ec->parent.

Test Plan: N/A

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1177
src/bin/e_comp_wl.c
src/modules/wl_desktop_shell/e_mod_main.c