Correct frame hit testing in the GFX backend, and add ability to select frame containers.