surface: Initialize current commit state before update 93/294393/3
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 15 Jun 2023 00:53:31 +0000 (09:53 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 19 Jun 2023 08:19:18 +0000 (08:19 +0000)
Since the current state is used to distinguish updated fields, the
current state has to be initialied instead of accumulating.

Change-Id: Ibbed13100b949993a2d230200950c99cda4cc174

src/compositor/surface.c

index aa3c9fa..342378f 100644 (file)
@@ -378,6 +378,7 @@ surface_commit_state(struct ds_surface *surface, struct ds_surface_state *next)
     surface->sy += next->dy;
     surface_update_damage(&surface->buffer_damage, &surface->current, next);
 
+    surface->current.committed = 0;
     surface_state_move(&surface->current, next);
 
     // FIXME no need?