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
surface_commit_state(surface, &surface->pending);
// TODO handle subsurfaces of a given surface
-
- if (surface->role && surface->role->commit)
- surface->role->commit(surface);
-
- wl_signal_emit(&surface->events.commit, surface);
}
static void
if (surface->current.committed & DS_SURFACE_STATE_BUFFER)
surface_update_buffer(surface);
+ if (surface->role && surface->role->commit)
+ surface->role->commit(surface);
+
wl_signal_emit(&surface->events.commit, surface);
}