Lines Matching refs:display
67 Display *display;
73 /* Try to open the display */
74 if ((display = XOpenDisplay(display_name)) == NULL) {
75 (void)fprintf(stderr, "Error %s: can't open display \"%s\".\n",
82 for (screen = 0; screen < ScreenCount(display); screen++)
83 alloc_cmaps_for_screen(display, screen);
85 alloc_cmaps_for_screen(display, DefaultScreen(display));
91 XSetCloseDownMode(display, RetainPermanent);
93 XCloseDisplay(display);
99 alloc_cmaps_for_screen(display, screen)
100 Display *display;
112 if (!XGetRGBColormaps(display, RootWindow(display, screen),
118 available_visuals = XGetVisualInfo(display, VisualScreenMask, &vinfo_template, &num_visuals);
120 default_visualid = XVisualIDFromVisual(DefaultVisual(display, screen));
138 alloc_cmap_for_visual(display, screen, vinfo);
146 alloc_cmap_for_visual(display, screen, &available_visuals[v]);
155 alloc_cmap_for_visual(display, screen, &available_visuals[v]);
163 alloc_cmap_for_visual(display, screen, &available_visuals[v]);
168 alloc_cmap_for_visual(display, screen, vinfo)
169 Display *display;
198 create_colormap(display, vinfo, &new_cmap);
201 XChangeProperty(display, RootWindow(display, screen),
212 create_colormap(display, vinfo, std_colormap)
213 Display *display;
220 colormap = XCreateColormap(display, RootWindow(display, vinfo->screen),
225 XAllocColor(display, colormap, &color);
291 if (!strcmp(argv[option], "-display"))
383 (void)fprintf(stderr, "Usage: %s [-display <display:n.screen>]\n", prog_name);