Very similar question here, but seems to be unanswered.
I have have implemented a shadowed window using two windows, one parent window which has the shadow but the main native window is the child window. The only problem is that my parent window is much bigger than the child window, and is using transparency to do a shadow. This makes my window handle mouse events even when I click in the shadow region.
What I want is to make my window lose focus whenever I click in the shadow (parent) region, similar to just clicking on another window that is not part of my application. I also want direct control of the location of this click through region, in the case of the shadow size changing.
How can I achieve this?
Thank you in advance.