The order is the WindowServer's stacking order across all displays, so the first window is
the one in front of all the others, whichever application owns it. Only windows on the
currently visible Space(s) are included: minimized windows, windows of hidden applications
and windows on other Spaces have no place in the stacking order, so use allWindows() for those.
Get the windows on screen, ordered front to back
The order is the WindowServer's stacking order across all displays, so the first window is the one in front of all the others, whichever application owns it. Only windows on the currently visible Space(s) are included: minimized windows, windows of hidden applications and windows on other Spaces have no place in the stacking order, so use
allWindows()for those.