mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-11-17 02:35:57 +01:00
tests: fixup C test override checking
This commit is contained in:
parent
5729b9733d
commit
d60e1e01e6
1 changed files with 12 additions and 1 deletions
|
@ -27,11 +27,22 @@ int main(int argc, char** argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
hyprcursor_cursor_raw_shape_data* shapeData = hyprcursor_get_raw_shape_data(mgr, "left_ptr");
|
hyprcursor_cursor_raw_shape_data* shapeData = hyprcursor_get_raw_shape_data(mgr, "left_ptr");
|
||||||
if (!shapeData || shapeData->len <= 0) {
|
if (!shapeData) {
|
||||||
printf("failed querying left_ptr\n");
|
printf("failed querying left_ptr\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (shapeData->overridenBy) {
|
||||||
|
hyprcursor_cursor_raw_shape_data* ov = hyprcursor_get_raw_shape_data(mgr, shapeData->overridenBy);
|
||||||
|
hyprcursor_raw_shape_data_free(shapeData);
|
||||||
|
shapeData = ov;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!shapeData || shapeData->len <= 0) {
|
||||||
|
printf("left_ptr has no images\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
printf("left_ptr images: %d\n", shapeData->len);
|
printf("left_ptr images: %d\n", shapeData->len);
|
||||||
|
|
||||||
for (size_t i = 0; i < shapeData->len; ++i) {
|
for (size_t i = 0; i < shapeData->len; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue