Program launched from SDL program is launched behind the SDL program

It looks like this is the same problem as suffered here: https://forums.libsdl.org/viewtopic.php?p=42655
One of the replies mentions a layering system; would that be a solution, and if so: how could I apply this?