surface: Fix emitting commit event twice 09/280209/2
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 25 Aug 2022 07:23:32 +0000 (16:23 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 26 Aug 2022 00:39:13 +0000 (00:39 +0000)
commit6b34d6b0d6c85251ccb198d643da52677c3bfb67
tree186ae937179d508ccb4c0f24ed60ef93e5da09dc
parent6b938fb136481bb22f14ba8d9869d4d3565e28b8
surface: Fix emitting commit event twice

This patch removes one of the commit events being emitted and therefore
the commit event is emitted in surface_commit_state() once.
And this moves surface->role->commit() accordingly.

Change-Id: I427d3170b53acc08527892c2c2dc2f559870231e
src/surface/surface.c