2000-01-25 02:35:00 +00:00
|
|
|
--- src/lib/IV-X11/xdrag.c.org Thu Jun 10 01:10:59 1993
|
|
|
|
+++ src/lib/IV-X11/xdrag.c Sun Jan 23 18:52:17 2000
|
|
|
|
@@ -229,11 +229,12 @@
|
|
|
|
XWindow *children;
|
|
|
|
unsigned int kids;
|
|
|
|
Status status;
|
|
|
|
+ int i;
|
|
|
|
status = XQueryTree(display, root, &root, &parent, &children, &kids);
|
|
|
|
if (status == 0) {
|
|
|
|
return None;
|
1999-12-29 07:47:39 +00:00
|
|
|
}
|
2000-01-25 02:35:00 +00:00
|
|
|
- for (int i = kids - 1; i >= 0 && children[i] != under ; --i);
|
|
|
|
+ for (i = kids - 1; i >= 0 && children[i] != under ; --i);
|
|
|
|
for (--i; i >= 0; --i) {
|
|
|
|
XWindowAttributes attributes;
|
|
|
|
XGetWindowAttributes(display, children[i], &attributes);
|