I cannot find in the The Xlib Manual how to get the active window?
Is it the "focus window" that I obtain using XGetInputFocus?
Or should I query the root window property _NET_ACTIVE_WINDOW?
According to Wikipedia, this property "gives the currently active window".
So I wanted to use the function XGetWindowProperty to get the property _NET_ACTIVE_WINDOW, but I have no idea what value I should give to parameters that I do not understand like long_offset, long_length, delete, req_type...
I am using Linux (Ubuntu).