There's also a flag DISPMANX_FLAGS_ALPHA_DISCARD_LOWER_LAYERS that you can pass in for your layer that removes all lower layers from the list. That's generally easier to do than messing with sysfs.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.