Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

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 hereas 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.

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.

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.

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
explicitly considered an aspect mentioned in an answer
Source Link

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.

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 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.

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.

Source Link
Loading