From 204790bb1335286b02a5849763ed317a185387ef Mon Sep 17 00:00:00 2001 From: Nils Hilbricht Date: Fri, 14 Oct 2016 00:11:42 +0200 Subject: [PATCH] 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 --- session-manager/src/nsmd.C | 1 + 1 file changed, 1 insertion(+) diff --git a/session-manager/src/nsmd.C b/session-manager/src/nsmd.C index e047098..9147b3b 100644 --- a/session-manager/src/nsmd.C +++ b/session-manager/src/nsmd.C @@ -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, "" );