Lines Matching refs:pAttr

168 static void FreeAttrs(ScreenSaverAttrPtr pAttr);
170 static void FreeScreenAttr(ScreenSaverAttrPtr pAttr);
289 FreeAttrs(ScreenSaverAttrPtr pAttr) in FreeAttrs() argument
294 if ((pPixmap = pAttr->pBackgroundPixmap) != 0) in FreeAttrs()
296 if ((pPixmap = pAttr->pBorderPixmap) != 0) in FreeAttrs()
298 if ((pCursor = pAttr->pCursor) != 0) in FreeAttrs()
303 FreeScreenAttr(ScreenSaverAttrPtr pAttr) in FreeScreenAttr() argument
305 FreeAttrs(pAttr); in FreeScreenAttr()
306 free(pAttr->values); in FreeScreenAttr()
307 free(pAttr); in FreeScreenAttr()
467 ScreenSaverAttrPtr pAttr; in CreateSaverWindow() local
485 if (!pPriv || !(pAttr = pPriv->attr)) in CreateSaverWindow()
490 if (GrabInProgress && GrabInProgress != pAttr->client->index) in CreateSaverWindow()
494 pAttr->x, pAttr->y, pAttr->width, pAttr->height, in CreateSaverWindow()
495 pAttr->borderWidth, pAttr->class, in CreateSaverWindow()
496 pAttr->mask, (XID *) pAttr->values, in CreateSaverWindow()
497 pAttr->depth, serverClient, pAttr->visual, &result); in CreateSaverWindow()
505 if (pAttr->pBackgroundPixmap) { in CreateSaverWindow()
507 pWin->background.pixmap = pAttr->pBackgroundPixmap; in CreateSaverWindow()
508 pAttr->pBackgroundPixmap->refcnt++; in CreateSaverWindow()
511 if (pAttr->pBorderPixmap) { in CreateSaverWindow()
513 pWin->border.pixmap = pAttr->pBorderPixmap; in CreateSaverWindow()
514 pAttr->pBorderPixmap->refcnt++; in CreateSaverWindow()
517 if (pAttr->pCursor) { in CreateSaverWindow()
524 cursor = RefCursor(pAttr->pCursor); in CreateSaverWindow()
535 if (pAttr->colormap != None) in CreateSaverWindow()
536 (void) ChangeWindowAttributes(pWin, CWColormap, &pAttr->colormap, in CreateSaverWindow()
736 ScreenSaverAttrPtr pAttr = 0; in ScreenSaverSetAttributes() local
851 pAttr = New(ScreenSaverAttrRec); in ScreenSaverSetAttributes()
852 if (!pAttr) { in ScreenSaverSetAttributes()
857 pAttr->values = values = xallocarray(len + 1, sizeof(unsigned long)); in ScreenSaverSetAttributes()
862 pAttr->screen = pScreen; in ScreenSaverSetAttributes()
863 pAttr->client = client; in ScreenSaverSetAttributes()
864 pAttr->x = stuff->x; in ScreenSaverSetAttributes()
865 pAttr->y = stuff->y; in ScreenSaverSetAttributes()
866 pAttr->width = stuff->width; in ScreenSaverSetAttributes()
867 pAttr->height = stuff->height; in ScreenSaverSetAttributes()
868 pAttr->borderWidth = stuff->borderWidth; in ScreenSaverSetAttributes()
869 pAttr->class = stuff->c_class; in ScreenSaverSetAttributes()
870 pAttr->depth = depth; in ScreenSaverSetAttributes()
871 pAttr->visual = visual; in ScreenSaverSetAttributes()
872 pAttr->colormap = None; in ScreenSaverSetAttributes()
873 pAttr->pCursor = NullCursor; in ScreenSaverSetAttributes()
874 pAttr->pBackgroundPixmap = NullPixmap; in ScreenSaverSetAttributes()
875 pAttr->pBorderPixmap = NullPixmap; in ScreenSaverSetAttributes()
881 pAttr->mask = tmask = stuff->mask | CWOverrideRedirect; in ScreenSaverSetAttributes()
909 pAttr->pBackgroundPixmap = pPixmap; in ScreenSaverSetAttributes()
911 pAttr->mask &= ~CWBackPixmap; in ScreenSaverSetAttributes()
941 pAttr->pBorderPixmap = pPixmap; in ScreenSaverSetAttributes()
943 pAttr->mask &= ~CWBorderPixmap; in ScreenSaverSetAttributes()
1027 pAttr->colormap = cmap; in ScreenSaverSetAttributes()
1028 pAttr->mask &= ~CWColormap; in ScreenSaverSetAttributes()
1042 pAttr->pCursor = RefCursor(pCursor); in ScreenSaverSetAttributes()
1043 pAttr->mask &= ~CWCursor; in ScreenSaverSetAttributes()
1055 pPriv->attr = pAttr; in ScreenSaverSetAttributes()
1056 pAttr->resource = FakeClientID(client->index); in ScreenSaverSetAttributes()
1057 if (!AddResource(pAttr->resource, AttrType, (void *) pAttr)) in ScreenSaverSetAttributes()
1061 FreeAttrs(pAttr); in ScreenSaverSetAttributes()
1064 if (pAttr) in ScreenSaverSetAttributes()
1065 free(pAttr->values); in ScreenSaverSetAttributes()
1066 free(pAttr); in ScreenSaverSetAttributes()