While trying to write a script involving wmctrl ( since MATE on LMDE 2 doesn't offer as many advanced features as other WM configurations involving Compiz, which I don't have on LMDE 2), I came across the problem of identifying the most recently created window among a set of windows with the same title.
This problem arose, because as is stated here, I cannot identify that window by using PIDs.
So, I am wondering if my assumption, that window IDs are given out in ascending order ( EDIT: with some cap, of course) holds.
If so, please provide me with a concise explanation ( I think this should be fairly easy to answer for anybody knowing enough).
Closely related: I would also be glad to know if
wmctrl -l actually sorts windows with the same title in ascending (hex-)numerical order. It seems that way, but I haven't found any officially documented statement regarding this.