Lines Matching defs:pSel
75 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);
183 if (CompareTimeStamps(time, pSel->lastTimeChanged) == EARLIER)
185 if (pSel->client && (!pWin || (pSel->client != client)))
189 event.u.selectionClear.window = pSel->window;
190 event.u.selectionClear.atom = pSel->selection;
191 WriteEventsToClient(pSel->client, 1, &event);
199 pSel = dixAllocateObjectWithPrivates(Selection, PRIVATE_SELECTION);
200 if (!pSel)
203 pSel->selection = stuff->selection;
206 rc = XaceHookSelectionAccess(client, &pSel,
209 free(pSel);
213 pSel->next = CurrentSelections;
214 CurrentSelections = pSel;
219 pSel->lastTimeChanged = time;
220 pSel->window = stuff->window;
221 pSel->pWin = pWin;
222 pSel->client = (pWin ? client : NullClient);
224 CallSelectionCallback(pSel, client, SelectionSetOwner);
232 Selection *pSel;
248 rc = dixLookupSelection(&pSel, stuff->id, client, DixGetAttrAccess);
250 reply.owner = pSel->window;
266 Selection *pSel;
283 rc = dixLookupSelection(&pSel, stuff->selection, client, DixReadAccess);
288 else if (rc == Success && pSel->window != None) {
290 event.u.selectionRequest.owner = pSel->window;
296 if (pSel->client && pSel->client != serverClient && !pSel->client->clientGone)
298 WriteEventsToClient(pSel->client, 1, &event);