compositor: use generated constant instead of hardcoded value
Use SINCE macros instead of the hardcoded version value. Signed-off-by: David Fort <contact@hardening-consulting.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
committed by
Bryce Harrington
parent
2d4aa83fe1
commit
8a120690a1
+1
-1
@@ -4234,7 +4234,7 @@ weston_output_move(struct weston_output *output, int x, int y)
|
|||||||
output->model,
|
output->model,
|
||||||
output->transform);
|
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);
|
wl_output_send_done(resource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user