Commit 7358581d authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXdispatch.c: move nxagentClearClipboard to client callback

parent 067031a3
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include "Events.h" #include "Events.h"
#include "Drawable.h" #include "Drawable.h"
#include "Utils.h" #include "Utils.h"
#include "Clipboard.h"
/* /*
* Need to include this after the stub definition of GC in Agent.h. * Need to include this after the stub definition of GC in Agent.h.
...@@ -150,6 +151,7 @@ void nxagentClientStateCallback(CallbackListPtr *callbacks, void *data, void *ar ...@@ -150,6 +151,7 @@ void nxagentClientStateCallback(CallbackListPtr *callbacks, void *data, void *ar
} }
case ClientStateGone: case ClientStateGone:
{ {
nxagentClearClipboard(client, NULL);
freeClientPrivates(client); freeClientPrivates(client);
break; break;
} }
......
...@@ -989,23 +989,14 @@ CloseDownClient(register ClientPtr client) ...@@ -989,23 +989,14 @@ CloseDownClient(register ClientPtr client)
{ {
#ifdef NXAGENT_SERVER #ifdef NXAGENT_SERVER
/* /*
* There must be a better way to hook a * Need to reset the karma counter and get rid of the pending sync
* call-back function to be called any * replies.
* time a client is going to be closed.
*/
nxagentClearClipboard(client, NULL);
/*
* Need to reset the karma counter and
* get rid of the pending sync replies.
*/ */
nxagentWakeupByReset(client); nxagentWakeupByReset(client);
/* /*
* Check if the client * Check if the client is a shadow nxagent.
* is a shadow nxagent.
*/ */
nxagentCheckIfShadowAgent(client); nxagentCheckIfShadowAgent(client);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment