Use the named SINCE_VERSION defines for version checks
To make our code more clear.
diff --git a/src/compositor.c b/src/compositor.c
index 55c959e..4d6a02a 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3145,7 +3145,7 @@
output->subpixel,
output->make, output->model,
output->transform);
- if (version >= 2)
+ if (version >= WL_OUTPUT_SCALE_SINCE_VERSION)
wl_output_send_scale(resource,
output->current_scale);
@@ -3157,7 +3157,7 @@
mode->refresh);
}
- if (version >= 2)
+ if (version >= WL_OUTPUT_DONE_SINCE_VERSION)
wl_output_send_done(resource);
}