Disclaimer: I know that question is very similar in this thread .
I am trying to get the same result that NoozNooz42 described here . However, the answer of mdma does not meet my needs, because I am interested in doing the same on linux. Preferably with a gnome, if that matters. So using JNA with the user32 library is not an option here (or is it?).
Any suggestions would be great, I could not find anything about this.
PS The only thing I found was the wmctrl command (I can call and parse it in java), which displays windows but does not give me any information about the z-order.
Update: It would be ideal if I could get a notification / callback when the z-order changes.
source
share