I had the issue that the rank detection was not working correctly for me.
To fix that, arguments for width and height have to be swapped for the function call to XGetGeometry.
This complies to the Xlib reference page for this function: https://tronche.com/gui/x/xlib/window-information/XGetGeometry.html
I had the issue that the rank detection was not working correctly for me. To fix that, arguments for width and height have to be swapped for the function call to XGetGeometry. This complies to the Xlib reference page for this function: https://tronche.com/gui/x/xlib/window-information/XGetGeometry.html