Lines Matching defs: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),
117 Screen *screen,
121 XGrabServer(DisplayOfScreen(screen));
122 cmc_alloc(screen, ncolors, colors);
123 XUngrabServer(DisplayOfScreen(screen));
128 ** For each screen for which there is saved workspace colors,
130 ** colormap of the screen.
161 /* For each screen of display ... */
163 Screen *screen;
171 /* See if screen is still present */
173 warning("Warning: cannot allocated saved colors for screen %d because\nthe display no longer has this many screens\n", scr_num);
176 screen = ScreenOfDisplay(dpy, scr_num);
179 ** Existence of workspace colors for the screen implies
183 if (!dynamic_indexed_default_visual(screen)) {
184 warning("default visual for screen %d is no longer dynamic indexed\nsaved colors not allocated for screen %d", scr_num, scr_num);
189 cmc_alloc_protected(screen, ncolors, colors);