Two options:
1. Reimplement mouse events for A and resend the event to B instead of ignoring it in A
2. Install an event filter on A to forward events to B, there check if the event is in the transparent area and handle it there and then return true so that A doesn't get the event.
Bookmarks