diff options
| author | Po Lu | 2023-06-30 16:20:02 +0800 |
|---|---|---|
| committer | Po Lu | 2023-06-30 16:20:02 +0800 |
| commit | 522c572075010f04c94fe8b7773bf40d0928a2ff (patch) | |
| tree | ed027c54668d068a26e3a29abc8a6179856387fd /src/android.c | |
| parent | 714c425385861d2a9e7b6bc95c27c3f9b1eca0aa (diff) | |
| download | emacs-522c572075010f04c94fe8b7773bf40d0928a2ff.tar.gz emacs-522c572075010f04c94fe8b7773bf40d0928a2ff.zip | |
* src/android.c (android_query_tree): Correctly return children.
Diffstat (limited to 'src/android.c')
| -rw-r--r-- | src/android.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android.c b/src/android.c index da5e8da3be1..2a2d134c3c8 100644 --- a/src/android.c +++ b/src/android.c | |||
| @@ -5631,7 +5631,9 @@ android_query_tree (android_window handle, android_window *root_return, | |||
| 5631 | android_exception_check_nonnull (shorts, array); | 5631 | android_exception_check_nonnull (shorts, array); |
| 5632 | 5632 | ||
| 5633 | for (i = 1; i < nelements; ++i) | 5633 | for (i = 1; i < nelements; ++i) |
| 5634 | children[i] = shorts[i]; | 5634 | /* Subtract one from the index into children, since the parent is |
| 5635 | not included. */ | ||
| 5636 | children[i - 1] = shorts[i]; | ||
| 5635 | 5637 | ||
| 5636 | /* Finally, return the parent and other values. */ | 5638 | /* Finally, return the parent and other values. */ |
| 5637 | *root_return = 0; | 5639 | *root_return = 0; |