Lines Matching refs:screen
40 Screen *screen,
45 register Colormap cmap = DefaultColormapOfScreen(screen);
55 ntotal = 1<<PlanesOfScreen(screen);
64 if (!XAllocColorCells(DisplayOfScreen(screen), cmap, 0, &mask, 0,
83 XFreeColors(DisplayOfScreen(screen), cmap, pixels+nalloc, ncolors, 0);
87 if (!XAllocColor(DisplayOfScreen(screen), cmap, c))
91 XFreeColors(DisplayOfScreen(screen), cmap, pixels, nalloc, 0);
98 { Visual *vis = DefaultVisualOfScreen(screen);
100 if (WhitePixelOfScreen(screen) == cmap_size-1 ||
101 WhitePixelOfScreen(screen) == cmap_size-2)
103 if (BlackPixelOfScreen(screen) == cmap_size-1 ||
104 BlackPixelOfScreen(screen) == cmap_size-2)
106 prop_update(DisplayOfScreen(screen), RootWindowOfScreen(screen),
116 cmc_alloc_protected (screen, ncolors, colors)
117 Screen *screen;
122 XGrabServer(DisplayOfScreen(screen));
123 cmc_alloc(screen, ncolors, colors);
124 XUngrabServer(DisplayOfScreen(screen));
129 ** For each screen for which there is saved workspace colors,
131 ** colormap of the screen.
162 /* For each screen of display ... */
164 Screen *screen;
172 /* See if screen is still present */
174 warning("Warning: cannot allocated saved colors for screen %d because\nthe display no longer has this many screens\n", scr_num);
177 screen = ScreenOfDisplay(dpy, scr_num);
180 ** Existence of workspace colors for the screen implies
184 if (!dynamic_indexed_default_visual(screen)) {
185 warning("default visual for screen %d is no longer dynamic indexed\nsaved colors not allocated for screen %d", scr_num, scr_num);
190 cmc_alloc_protected(screen, ncolors, colors);