Hi,
I got the list of windows with:
Now I have an array of CGRects pointer:
Now my question is, how do I get only the window position and dimentions into the CGRect array from the m_WindowList ?
Any help here ?
Thanks !
-Pablo
I got the list of windows with:
Code:
CFArrayRef m_WindowList;
m_WindowList = CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly | kCGWindowListExcludeDesktopElements, kCGNullWindowID);
Now I have an array of CGRects pointer:
Code:
CGRect* m_WindowRectList;
Now my question is, how do I get only the window position and dimentions into the CGRect array from the m_WindowList ?
Any help here ?
Thanks !
-Pablo