Use SINCE macros instead of the hardcoded version value.

Signed-off-by: David Fort <[email protected]>
---
 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

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to