Add /nsm/server/stop to the client-to-server control messages. Now clients can instruct nsmD to tell themselves to stop. This enables the client behaviour to for example ignore local close events (like from X11) and instead ask NSM to send the proper quit signal. The result is that NSM actually awaits the client quitting and does not respond with '...died unexpectedly' anymore

pull/200/head
Nils Hilbricht 2016-10-14 00:11:42 +02:00
parent 6f339fdfa0
commit 204790bb13
1 changed files with 1 additions and 0 deletions

View File

@ -2327,6 +2327,7 @@ int main(int argc, char *argv[])
osc_server->add_method( "/nsm/server/open", "s", OSC_NAME( open ), NULL, "name" );
osc_server->add_method( "/nsm/server/close", "", OSC_NAME( close ), NULL, "" );
osc_server->add_method( "/nsm/server/quit", "", OSC_NAME( quit ), NULL, "" );
osc_server->add_method( "/nsm/server/stop", "s", OSC_NAME( stop ), NULL, "client_id" );
osc_server->add_method( NULL, NULL, OSC_NAME( null ),NULL, "" );