surface: Accumulate commit state on surface_state_move 92/294392/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 15 Jun 2023 00:51:44 +0000 (09:51 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 19 Jun 2023 00:43:46 +0000 (09:43 +0900)
Instead of having replaced commit state with next one, this patch
accumulates commit state. Otherwise, cached state would be replaced by
the pending state.

If a state needs to be replaced, then caller can initialie the commit
state before the call to surface_state_move().

Change-Id: I92072b38989f14fa4db84d95329d058cab6614f2

src/compositor/surface.c

index ebf2a6e..aa3c9fa 100644 (file)
@@ -363,9 +363,7 @@ surface_state_move(struct ds_surface_state *state, struct ds_surface_state *next
         wl_list_init(&next->frame_callback_list);
     }
 
-    // FIXME
-    // state->committed |= next->committed; ??
-    state->committed = next->committed;
+    state->committed |= next->committed;
     next->committed = 0;
 }