Code cleanup and check for OOM condition with wl_array_add
authorBryce Harrington <bryce@osg.samsung.com>
Tue, 24 Feb 2015 19:47:56 +0000 (14:47 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 24 Feb 2015 19:47:56 +0000 (14:47 -0500)
commit40998b8a6e0cdfd052ddd93afaf90335cb22cb4b
tree654b518a3211b3c82dacc59a4ba66f3a321f8ba2
parentd89681fa3cd04e4b8745527b30eedf89d8d4cf74
Code cleanup and check for OOM condition with wl_array_add

Summary:
wayland: Check wl_array_add return for OOM condition
cosmetic: Make error return check syntax consistent with rest of code
wayland: Reuse use_adj to track child-forced adjust
wayland: Refactor to collapse if chain
wayland: Refactor _e_comp_wl_client_priority_adjust to collapse if chain
 + This uses early returns to unwrap a couple if clauses to make the code a bit less nesty.
wayland: Refactor if statements for consistency with rest of file

Reviewers: cedric, zmike, devilhorns

Subscribers: devilhorns, cedric

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