Lines Matching defs:pSel
74 Selection *pSel;
79 for (pSel = CurrentSelections; pSel; pSel = pSel->next)
80 if (pSel->selection == selectionName)
83 if (pSel)
84 rc = XaceHookSelectionAccess(client, &pSel, access_mode);
85 *result = pSel;
92 Selection *pSel, *pNextSel;
94 pSel = CurrentSelections;
95 while (pSel) {
96 pNextSel = pSel->next;
97 dixFreeObjectWithPrivates(pSel, PRIVATE_SELECTION);
98 pSel = pNextSel;
105 CallSelectionCallback(Selection * pSel, ClientPtr client,
108 SelectionInfoRec info = { pSel, client, kind };
115 Selection *pSel;
117 for (pSel = CurrentSelections; pSel; pSel = pSel->next)
118 if (pSel->pWin == pWin) {
119 CallSelectionCallback(pSel, NULL, SelectionWindowDestroy);
121 pSel->pWin = (WindowPtr) NULL;
122 pSel->window = None;
123 pSel->client = NullClient;
130 Selection *pSel;
132 for (pSel = CurrentSelections; pSel; pSel = pSel->next)
133 if (pSel->client == client) {
134 CallSelectionCallback(pSel, NULL, SelectionClientClose);
136 pSel->pWin = (WindowPtr) NULL;
137 pSel->window = None;
138 pSel->client = NullClient;
147 Selection *pSel;
174 rc = dixLookupSelection(&pSel, stuff->selection, client, DixSetAttrAccess);
181 if (CompareTimeStamps(time, pSel->lastTimeChanged) == EARLIER)
183 if (pSel->client && (!pWin || (pSel->client != client))) {
186 .u.selectionClear.window = pSel->window,
187 .u.selectionClear.atom = pSel->selection
190 WriteEventsToClient(pSel->client, 1, &event);
197 pSel = dixAllocateObjectWithPrivates(Selection, PRIVATE_SELECTION);
198 if (!pSel)
201 pSel->selection = stuff->selection;
204 rc = XaceHookSelectionAccess(client, &pSel,
207 free(pSel);
211 pSel->next = CurrentSelections;
212 CurrentSelections = pSel;
217 pSel->lastTimeChanged = time;
218 pSel->window = stuff->window;
219 pSel->pWin = pWin;
220 pSel->client = (pWin ? client : NullClient);
222 CallSelectionCallback(pSel, client, SelectionSetOwner);
230 Selection *pSel;
247 rc = dixLookupSelection(&pSel, stuff->id, client, DixGetAttrAccess);
249 reply.owner = pSel->window;
265 Selection *pSel;
285 rc = dixLookupSelection(&pSel, stuff->selection, client, DixReadAccess);
290 else if (rc == Success && pSel->window != None) {
292 event.u.selectionRequest.owner = pSel->window;
298 if (pSel->client && pSel->client != serverClient &&
299 !pSel->client->clientGone) {
300 WriteEventsToClient(pSel->client, 1, &event);