Definitions for "Occludes"
Window A ``occludes'' window B if both are mapped, if A is higher in the global stacking order, and if the rectangle defined by the outside edges of A intersects the rectangle defined by the outside edges of B. Note the (fine) distinction with "obscures". Also note that window borders are included in the calculation. Note that InputOnly windows never obscure other windows but can occludes other windows.