Does anyone have an example? I know SDL input has to be only in its “main” thread but I find trouble to give input properly to another thread with an SDL window (which got context with Makecurrent from a window made on main).
You need to share context. I don’t know how to do it with SDL, but it’s quite easy with glx, wgl. Have a look at the SDL documentation.