The file CGWindowLevel.hdefines the constants that are used to set the window level, and the largest value that can be used as the window level is 20. But if you retrieve the list of windows using a call CGWindowListCopyWindowInfo, you can have a value of kCGWindowLayermore than 20 (25, 103, etc. .).
Does kCGWindowLayer and window level not match? If they do not match, how do I get the window level for windows that are obtained with CGWindowListCopyWindowInfo? If they are the same, why do we get a value> 20?
source
share