Use correct windowmanager api calling sequence
For an application which doesn't use qt, but wants to use the windowmanager-service,
the application needs to call the windowmanager api in the correct sequence.
Change this sample application to use the correct sequence.
Rule1:
Between activeSurface and syncDraw, application should not
draw anything.
Rule2:
An application can change the window size when it received a syncDraw event,
it does not need to do it in ivi_surface configuration.
[Patch Sets 2]
Miss a drawing control flag code, fix it.
BUG-AGL: SPEC-988
Change-Id: I913d80653c864b5c1039da9a15b616666bdde6e3
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>