Skip to content

Commit

Permalink
Fix UI re-opening
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Jun 9, 2012
1 parent 5aa7156 commit 490e693
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dssi-vst-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1228,10 +1228,10 @@ LRESULT WINAPI
MainProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) {
case WM_DESTROY:
case WM_CLOSE:
remoteVSTServerInstance->terminateGUIProcess();
guiVisible = false;
return 0;
remoteVSTServerInstance->hideGUI();
return TRUE;
}

return DefWindowProc(hWnd, msg, wParam, lParam);
Expand Down
10 changes: 8 additions & 2 deletions dssi-vst_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ control_handler(const char *path, const char *types, lo_arg **argv,
int argc, void *data, void *user_data)
{
static int count = 0;
cerr << "dssi-vst_gui: control_handler " << count++ << endl;
count++;
//cerr << "dssi-vst_gui: control_handler " << count++ << endl;
return 0;
}

Expand Down Expand Up @@ -295,9 +296,14 @@ main(int argc, char **argv)
cerr << "dssi-vst_gui[1]: exiting" << endl;
}

free(hosthostname);
free(hostport);
free(hostpath);
lo_address_free(hostaddr);
lo_server_free(oscserver);

close(fifoFd);
unlink(fifoFile);

return 0;
}

0 comments on commit 490e693

Please sign in to comment.