The CGWindowLevel.h
file defines the constants that are used to set the window level and the largest value that can be used as window level is 20. But, if you retrieve the window list using the call CGWindowListCopyWindowInfo
, you can observe that the value of kCGWindowLayer
is more than 20 (25, 103 etc).
Aren't kCGWindowLayer and window level same?
If they are not same, how do I get the window level for the windows that are obtained using CGWindowListCopyWindowInfo
?
If they are same, why do we get value >20?