Commit c02ab70e authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXdispatch.c: Simplify InitSelections()

by calling upstream version from dispatch.c
parent 718a58fb
......@@ -213,16 +213,18 @@ UpdateCurrentTimeIf()
currentTime = systime;
}
#ifndef NXAGENT_SERVER
void
InitSelections()
#ifdef NXAGENT_SERVER
xorg_InitSelections(void)
#else
InitSelections(void)
#endif
{
if (CurrentSelections)
free(CurrentSelections);
CurrentSelections = (Selection *)NULL;
NumCurrentSelections = 0;
}
#endif /* NXAGENT_SERVER */
#undef SMART_DEBUG
......
......@@ -203,12 +203,9 @@ extern int nxagentMaxSelections;
extern int nxOpenFont(ClientPtr, XID, Mask, unsigned, char*);
void
InitSelections()
InitSelections(void)
{
if (CurrentSelections)
free(CurrentSelections);
CurrentSelections = (Selection *)NULL;
NumCurrentSelections = 0;
xorg_InitSelections();
#ifdef NXAGENT_CLIPBOARD
{
......@@ -232,7 +229,6 @@ InitSelections()
CurrentSelections[nxagentClipboardSelection].client = NullClient;
}
#endif
}
#define MAJOROP ((xReq *)client->requestBuffer)->reqType
......
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