diff options
author | Christopher Michael <cpmichael@osg.samsung.com> | 2015-12-20 07:41:52 -0500 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2016-01-14 16:36:21 -0600 |
commit | e1434d3ca8b69a9067ea064dffe2d16e966f60e2 (patch) | |
tree | 1bbf82724fc5119e028c7824f01fdd47c0ed5b4f | |
parent | 602b6b64352bb513a65924d310b5a63b86975bf6 (diff) |
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>
-rw-r--r-- | clients/simple-damage.c | 3 |
1 files changed, 2 insertions, 1 deletions
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", |