I am trying to write a program whose requirement is to get the focused window title name, I have used "CGWindowListCopyWindowInfo" API which results in all active window list and I want currently focused window title only.
Language -C/C++ Platform - MacOs
Any help will be appreciated