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
This commit is contained in:
parent
6f339fdfa0
commit
204790bb13
|
@ -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/open", "s", OSC_NAME( open ), NULL, "name" );
|
||||||
osc_server->add_method( "/nsm/server/close", "", OSC_NAME( close ), NULL, "" );
|
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/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, "" );
|
osc_server->add_method( NULL, NULL, OSC_NAME( null ),NULL, "" );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue