quad_switch function

Determine the Active Context of Quad-Layout