To do the same in code you need to use:
https://tronche.com/gui/x/xlib/window-information/XGetWindowProperty.html
To do the same in code you need to use:
https:/ /tronche. com/gui/ x/xlib/ window- information/ XGetWindowPrope rty.html