clients: Fix compositor version check for WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Reviewed-By: David Fort <contact@hardening-consulting.com>
diff --git a/clients/simple-damage.c b/clients/simple-damage.c
index 37a81f5..0353ccc 100644
--- a/clients/simple-damage.c
+++ b/clients/simple-damage.c
@@ -262,7 +262,8 @@
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",