[PATCH weston] clients/simple-shm: remove unreachable function call

Ryo Munakata ryomnktml at gmail.com
Fri Nov 18 12:17:24 UTC 2016


window->wait_for_configure should be false after dispatching more than once.
Therefore this redraw() will never be called.

Signed-off-by: Ryo Munakata <ryomnktml at gmail.com>
---
 clients/simple-shm.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/clients/simple-shm.c b/clients/simple-shm.c
index 9fa2e21..04b4eff 100644
--- a/clients/simple-shm.c
+++ b/clients/simple-shm.c
@@ -547,9 +547,6 @@ main(int argc, char **argv)
 	wl_surface_damage(window->surface, 0, 0,
 			  window->width, window->height);
 
-	if (!window->wait_for_configure)
-		redraw(window, NULL, 0);
-
 	while (running && ret != -1)
 		ret = wl_display_dispatch(display->display);
 
-- 
2.10.2



More information about the wayland-devel mailing list