Lines Matching refs:pProp

74     PropertyPtr pProp;  in PrintPropertys()  local
77 pProp = pWin->userProps; in PrintPropertys()
78 while (pProp) { in PrintPropertys()
79 ErrorF("[dix] %x %x\n", pProp->propertyName, pProp->type); in PrintPropertys()
80 ErrorF("[dix] property format: %d\n", pProp->format); in PrintPropertys()
82 for (j = 0; j < (pProp->format / 8) * pProp->size; j++) in PrintPropertys()
83 ErrorF("[dix] %c\n", pProp->data[j]); in PrintPropertys()
84 pProp = pProp->next; in PrintPropertys()
93 PropertyPtr pProp; in dixLookupProperty() local
98 for (pProp = wUserProps(pWin); pProp; pProp = pProp->next) in dixLookupProperty()
99 if (pProp->propertyName == propertyName) in dixLookupProperty()
102 if (pProp) in dixLookupProperty()
103 rc = XaceHookPropertyAccess(client, pWin, &pProp, access_mode); in dixLookupProperty()
104 *result = pProp; in dixLookupProperty()
111 deliverPropertyNotifyEvent(WindowPtr pWin, int state, PropertyPtr pProp) in deliverPropertyNotifyEvent() argument
116 .prop = pProp, in deliverPropertyNotifyEvent()
123 .u.property.atom = pProp->propertyName, in deliverPropertyNotifyEvent()
141 PropertyPtr pProp, saved; in ProcRotateProperties() local
169 rc = dixLookupProperty(&pProp, pWin, atoms[i], client, in ProcRotateProperties()
174 props[i] = pProp; in ProcRotateProperties()
175 saved[i] = *pProp; in ProcRotateProperties()
258 PropertyPtr pProp; in dixChangeWindowProperty() local
269 rc = dixLookupProperty(&pProp, pWin, property, pClient, access_mode); in dixChangeWindowProperty()
274 pProp = dixAllocateObjectWithPrivates(PropertyRec, PRIVATE_PROPERTY); in dixChangeWindowProperty()
275 if (!pProp) in dixChangeWindowProperty()
279 dixFreeObjectWithPrivates(pProp, PRIVATE_PROPERTY); in dixChangeWindowProperty()
283 pProp->propertyName = property; in dixChangeWindowProperty()
284 pProp->type = type; in dixChangeWindowProperty()
285 pProp->format = format; in dixChangeWindowProperty()
286 pProp->data = data; in dixChangeWindowProperty()
287 pProp->size = len; in dixChangeWindowProperty()
288 rc = XaceHookPropertyAccess(pClient, pWin, &pProp, in dixChangeWindowProperty()
292 dixFreeObjectWithPrivates(pProp, PRIVATE_PROPERTY); in dixChangeWindowProperty()
296 pProp->next = pWin->optional->userProps; in dixChangeWindowProperty()
297 pWin->optional->userProps = pProp; in dixChangeWindowProperty()
305 if ((format != pProp->format) && (mode != PropModeReplace)) in dixChangeWindowProperty()
307 if ((pProp->type != type) && (mode != PropModeReplace)) in dixChangeWindowProperty()
311 savedProp = *pProp; in dixChangeWindowProperty()
318 pProp->data = data; in dixChangeWindowProperty()
319 pProp->size = len; in dixChangeWindowProperty()
320 pProp->type = type; in dixChangeWindowProperty()
321 pProp->format = format; in dixChangeWindowProperty()
327 data = xallocarray(pProp->size + len, sizeInBytes); in dixChangeWindowProperty()
330 memcpy(data, pProp->data, pProp->size * sizeInBytes); in dixChangeWindowProperty()
331 memcpy(data + pProp->size * sizeInBytes, value, totalSize); in dixChangeWindowProperty()
332 pProp->data = data; in dixChangeWindowProperty()
333 pProp->size += len; in dixChangeWindowProperty()
336 data = xallocarray(len + pProp->size, sizeInBytes); in dixChangeWindowProperty()
339 memcpy(data + totalSize, pProp->data, pProp->size * sizeInBytes); in dixChangeWindowProperty()
341 pProp->data = data; in dixChangeWindowProperty()
342 pProp->size += len; in dixChangeWindowProperty()
347 rc = XaceHookPropertyAccess(pClient, pWin, &pProp, access_mode); in dixChangeWindowProperty()
349 if (savedProp.data != pProp->data) in dixChangeWindowProperty()
353 if (savedProp.data != pProp->data) in dixChangeWindowProperty()
354 free(pProp->data); in dixChangeWindowProperty()
355 *pProp = savedProp; in dixChangeWindowProperty()
363 deliverPropertyNotifyEvent(pWin, PropertyNewValue, pProp); in dixChangeWindowProperty()
371 PropertyPtr pProp, prevProp; in DeleteProperty() local
374 rc = dixLookupProperty(&pProp, pWin, propName, client, DixDestroyAccess); in DeleteProperty()
379 if (pWin->optional->userProps == pProp) { in DeleteProperty()
381 if (!(pWin->optional->userProps = pProp->next)) in DeleteProperty()
387 while (prevProp->next != pProp) in DeleteProperty()
389 prevProp->next = pProp->next; in DeleteProperty()
392 deliverPropertyNotifyEvent(pWin, PropertyDelete, pProp); in DeleteProperty()
393 free(pProp->data); in DeleteProperty()
394 dixFreeObjectWithPrivates(pProp, PRIVATE_PROPERTY); in DeleteProperty()
402 PropertyPtr pProp, pNextProp; in DeleteAllWindowProperties() local
404 pProp = wUserProps(pWin); in DeleteAllWindowProperties()
405 while (pProp) { in DeleteAllWindowProperties()
406 deliverPropertyNotifyEvent(pWin, PropertyDelete, pProp); in DeleteAllWindowProperties()
407 pNextProp = pProp->next; in DeleteAllWindowProperties()
408 free(pProp->data); in DeleteAllWindowProperties()
409 dixFreeObjectWithPrivates(pProp, PRIVATE_PROPERTY); in DeleteAllWindowProperties()
410 pProp = pNextProp; in DeleteAllWindowProperties()
446 PropertyPtr pProp, prevProp; in ProcGetProperty() local
478 rc = dixLookupProperty(&pProp, pWin, stuff->property, client, prop_mode); in ProcGetProperty()
487 if (((stuff->type != pProp->type) && (stuff->type != AnyPropertyType)) in ProcGetProperty()
492 .bytesAfter = pProp->size, in ProcGetProperty()
493 .format = pProp->format, in ProcGetProperty()
496 .propertyType = pProp->type in ProcGetProperty()
505 n = (pProp->format / 8) * pProp->size; /* size (bytes) of prop */ in ProcGetProperty()
522 .format = pProp->format, in ProcGetProperty()
524 .nItems = len / (pProp->format / 8), in ProcGetProperty()
525 .propertyType = pProp->type in ProcGetProperty()
529 deliverPropertyNotifyEvent(pWin, PropertyDelete, pProp); in ProcGetProperty()
544 WriteSwappedDataToClient(client, len, (char *) pProp->data + ind); in ProcGetProperty()
549 if (pWin->optional->userProps == pProp) { in ProcGetProperty()
551 if (!(pWin->optional->userProps = pProp->next)) in ProcGetProperty()
557 while (prevProp->next != pProp) in ProcGetProperty()
559 prevProp->next = pProp->next; in ProcGetProperty()
562 free(pProp->data); in ProcGetProperty()
563 dixFreeObjectWithPrivates(pProp, PRIVATE_PROPERTY); in ProcGetProperty()
575 PropertyPtr pProp, realProp; in ProcListProperties() local
584 for (pProp = wUserProps(pWin); pProp; pProp = pProp->next) in ProcListProperties()
592 for (pProp = wUserProps(pWin); pProp; pProp = pProp->next) { in ProcListProperties()
593 realProp = pProp; in ProcListProperties()
595 if (rc == Success && realProp == pProp) { in ProcListProperties()
596 *temppAtoms++ = pProp->propertyName; in ProcListProperties()