Hi,

I'm using the function CGWindowListCopyWindowInfo() to get a list of all visible windows since I want to do a hit test application wide. So my code is:

CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly | kCGWindowListExcludeDesktopElements, kCGNullWindowID)

Afterwards I iterate over all windows (front to back) and check whether the point lies inside the window bounds. This works fine most of the time. But if the dock is set to "always visible" there is a fullscreen window (except the main menu) that belongs to the dock process. So the dock "grabs" all points when it is in always visible mode. (If I set a view to fullscreen, its NSFullScreenWindow is in front of the dock of course.)

Since I couldn't find much information concerning the dictionary values of CGWindowListCopyWindowInfo() I hope that someone of you has a hint. I don't just want to exclude any windows that belong to the dock. The window level may be a possibility, but I don't know up to which number a non-Apple can be. Maybe the workspace number would be another possibility but I'm not sure.

With best wishes, Stefan

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to