henrik242/subsurface — comment on commit b1a1376f3baf78ceca49b47c7b39d58983f4f984
File:  line 0
By nischu:

What's your exact problem with Dock integration?

If it's that the window may not be clicked, it's because of the PSN:
Include
#include

and add this to some early initialisation code:
ProcessSerialNumber PSN;
GetCurrentProcess(&PSN);
TransformProcessType(&PSN, kProcessTransformToForegroundApplication);