[PATCH 4/6] compositor: use generated constant instead of hardcoded value

David Fort rdp.effort at gmail.com
Tue Apr 26 21:34:06 UTC 2016


Use SINCE macros instead of the hardcoded version value.

Signed-off-by: David Fort <contact at hardening-consulting.com>
---
 src/compositor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index 5500197..b88936b 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -4236,7 +4236,7 @@ weston_output_move(struct weston_output *output, int x, int y)
 					output->model,
 					output->transform);
 
-		if (wl_resource_get_version(resource) >= 2)
+		if (wl_resource_get_version(resource) >= WL_OUTPUT_DONE_SINCE_VERSION)
 			wl_output_send_done(resource);
 	}
 }
-- 
1.9.1



More information about the wayland-devel mailing list