From e1434d3ca8b69a9067ea064dffe2d16e966f60e2 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sun, 20 Dec 2015 07:41:52 -0500 Subject: [PATCH] clients: Fix compositor version check for WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION Signed-off-by: Chris Michael Reviewed-By: David Fort --- clients/simple-damage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/simple-damage.c b/clients/simple-damage.c index 37a81f58..0353cccb 100644 --- a/clients/simple-damage.c +++ b/clients/simple-damage.c @@ -262,7 +262,8 @@ create_window(struct display *display, int width, int height, exit(1); } - if (display->compositor_version < 4 && + if (display->compositor_version < + WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION && (flags & WINDOW_FLAG_USE_DAMAGE_BUFFER)) { fprintf(stderr, "wl_surface.damage_buffer unsupported in " "wl_surface version %d\n",