Transparent Window Clickthrough

Hi.

I created a window without window decorations and created an OpenGL context. Also,
I enabled to acknowledge alpha as transparency so that if I set the alpha
with glClearColor I blend with the other stuff that is currently on my desktop. This works well.
Also I configured the window to be on top at all times.

However, I also want to be able to click through the window. Basically I want to run
some shadercode in my SDL window but not make it clickable so that I can use my
desktop as usual.

I set the WindowHitTest Callback. While it does work (eg. I can drag the window no matter where
I click it) SDL_HitTestResult does not offer something like a IGNORE.

Then, I tried to set SDL_SetWindowFocusable to false. This works. On click the window does not come into focus. However as the window is always the top most one I cannot click on anything on my desktop anymore :smile:

Is there a way to make ‘click-through’ possible? Or do I have to manually get the OS window
handles and then muddle may way through?

Thanks and cheers, Michael

Hi, i’m interested in this very same thing, did you manage to solve it?

Does this PR help?