Commit 72c02240 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Clipboard.c: rename nxagentNotifySelection to nxagentHandleSelectionNotifyFromXServer

Use a more descriptive name.
parent 6663cbe6
...@@ -1199,7 +1199,7 @@ void nxagentCollectPropertyEvent(int resource) ...@@ -1199,7 +1199,7 @@ void nxagentCollectPropertyEvent(int resource)
* SelectionNotify event from the real X server. These events are * SelectionNotify event from the real X server. These events are
* sent out by nxagent itself! * sent out by nxagent itself!
*/ */
void nxagentNotifySelection(XEvent *X) void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
{ {
if (agentClipboardStatus != 1) if (agentClipboardStatus != 1)
{ {
...@@ -1859,9 +1859,10 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection, ...@@ -1859,9 +1859,10 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
/* /*
* This is _only_ called from ProcSendEvent in NXevents.c. It is used * This is _only_ called from ProcSendEvent in NXevents.c. It is used
* to send a SelectionNotify event to our server window which will * to send a SelectionNotify event to our server window which will
* trigger the dispatch loop in Events.c to run nxagentNotifySelection * trigger the dispatch loop in Events.c to run
* which in turn will take care of transferring the selection content * nxagentHandleSelectionNotifyFromXServer which in turn will take
* from the owning client to to a property of the server window. * care of transferring the selection content from the owning client
* to to a property of the server window.
* *
* Returning 1 here means the client request will not be further * Returning 1 here means the client request will not be further
* handled by dix. Returning 0 means a SelectionNotify event being * handled by dix. Returning 0 means a SelectionNotify event being
......
...@@ -64,7 +64,7 @@ extern int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom select ...@@ -64,7 +64,7 @@ extern int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom select
void nxagentClearSelection(); void nxagentClearSelection();
void nxagentRequestSelection(); void nxagentRequestSelection();
void nxagentNotifySelection(); void nxagentHandleSelectionNotifyFromXServer();
int nxagentFindCurrentSelectionIndex(Atom sel); int nxagentFindCurrentSelectionIndex(Atom sel);
#endif /* __Clipboard_H__ */ #endif /* __Clipboard_H__ */
...@@ -944,7 +944,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate) ...@@ -944,7 +944,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
fprintf(stderr, "nxagentDispatchEvents: Going to handle new SelectionNotify event.\n"); fprintf(stderr, "nxagentDispatchEvents: Going to handle new SelectionNotify event.\n");
#endif #endif
nxagentNotifySelection(&X); nxagentHandleSelectionNotifyFromXServer(&X);
break; break;
} }
......
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