Lines 606-612
Link Here
|
606 |
repar_evt->parent != root_win && |
606 |
repar_evt->parent != root_win && |
607 |
BASE(repar_evt->parent) != BASE(temp_win) && |
607 |
BASE(repar_evt->parent) != BASE(temp_win) && |
608 |
repar_evt->override_redirect != True) { |
608 |
repar_evt->override_redirect != True) { |
609 |
AddWindow(temp_win, repar_evt->parent); |
609 |
|
|
|
610 |
Window rwin, parent, *children, *child, app; |
611 |
int num; |
612 |
|
613 |
/* Iterate through the window list until we find |
614 |
* the window the event was about. |
615 |
* |
616 |
* The code was mostly copied |
617 |
* */ |
618 |
|
619 |
XQueryTree(dpy, root_win, &rwin, &parent, &children, &num); |
620 |
child = children; |
621 |
|
622 |
while (num --> 0) { |
623 |
app = None; |
624 |
GetAppWindow(*child, &app); |
625 |
|
626 |
if (app == temp_win) { |
627 |
AddWindow(temp_win, repar_evt->parent); |
628 |
break; |
629 |
} |
630 |
child++; |
631 |
}; |
632 |
|
633 |
if (children != None) |
634 |
XFree(children); |
610 |
} |
635 |
} |
611 |
break; |
636 |
break; |
612 |
|
637 |
|