Can I get the handle to the foreground (active, focused) window (similar to GetForegroundWindow for Windows)?
Is there any handle for the X Window Manager to do this? Or this is not supported?