Lines Matching refs:display

158 GetNumAvailableColors(Display * display, Screen * screen, unsigned map_entries) {
174 if (XAllocColorCells(display, cmap, 0, pmr, nPlanes, pr, numColors)) {
176 XFreeColors(display, cmap, pr, numColors, 0);
193 AllocColors(Display * display, Screen * screen, int numColors,
198 XAllocColorCells(display, cmap, 0, pmr, 0, pr, numColors);
203 FreeColors(Display * display, Screen * screen, int numColors,
207 XFreeColors(display, cmap, pr, numColors, 0);
218 atom = XInternAtom(splash->display, "XINERAMA_CENTER_HINT", True);
220 status = XGetWindowProperty(splash->display,
247 XSetWMNormalHints(splash->display, splash->window, &sizeHints);
260 attr.cursor = splash->cursor = XCreateFontCursor(splash->display, XC_watch);
265 splash->window = XCreateWindow(splash->display, XRootWindowOfScreen(splash->screen),
277 XSetWMHints(splash->display, splash->window, splash->wmHints);
289 XShapeCombineRectangles(splash->display, splash->window, ShapeClip, 0, 0,
292 XShapeCombineRectangles(splash->display, splash->window, ShapeBounding,
305 XShapeCombineMask (splash->display, splash->window, ShapeClip,
307 XShapeCombineMask (splash->display, splash->window , ShapeBounding,
334 ximage = XCreateImage(splash->display, splash->visual,
342 XPutImage(splash->display, splash->window,
348 XMapWindow(splash->display, splash->window);
349 XFlush(splash->display);
355 XUnmapWindow(splash->display, splash->window);
356 XMoveResizeWindow(splash->display, splash->window,
398 HandleIOError(Display * display) {
421 splash->display = XOpenDisplay(NULL);
422 if (!splash->display) {
427 shapeSupported = XShapeQueryExtension(splash->display, &shapeEventBase,
430 XShapeQueryVersion(splash->display, &shapeVersionMajor,
434 splash->screen = XDefaultScreenOfDisplay(splash->display);
445 (XImageByteOrder(splash->display) == LSBFirst ?
462 availableColors = GetNumAvailableColors(splash->display, splash->screen,
468 XCloseDisplay(splash->display);
470 splash->display = NULL;
476 splash->cmap = AllocColors(splash->display, splash->screen,
493 XStoreColors(splash->display, splash->cmap, xColors, numColors);
534 FreeColors(splash->display, splash->screen,
538 XDestroyWindow(splash->display, splash->window);
542 XFreeCursor(splash->display, splash->cursor);
543 if (splash->display)
544 XCloseDisplay(splash->display);
554 int xconn = XConnectionNumber(splash->display);
614 if (XPending(splash->display)) {
618 XNextEvent(splash->display, &evt);
624 while(XCheckTypedEvent(splash->display, Expose,
670 atom_set = XInternAtom(splash->display, "WM_PROTOCOLS", True);
672 atom_list[0] = XInternAtom(splash->display, "WM_TAKE_FOCUS", True);
673 atom_list[1] = XInternAtom(splash->display, "WM_DELETE_WINDOW", True);
675 XChangeProperty(splash->display, splash->window, atom_set, XA_ATOM, 32,
680 atom_set = XInternAtom(splash->display, "_MOTIF_WM_HINTS", True);
686 XChangeProperty(splash->display, splash->window, atom_set, atom_set,
691 atom_set = XInternAtom(splash->display, "_OL_DECOR_DEL", True);
693 atom_list[0] = XInternAtom(splash->display, "_OL_DECOR_RESIZE", True);
694 atom_list[1] = XInternAtom(splash->display, "_OL_DECOR_HEADER", True);
695 atom_list[2] = XInternAtom(splash->display, "_OL_DECOR_PIN", True);
696 atom_list[3] = XInternAtom(splash->display, "_OL_DECOR_CLOSE", True);
697 XChangeProperty(splash->display, splash->window, atom_set, XA_ATOM, 32,
707 atom_set = XInternAtom(splash->display, "_NET_WM_STATE", True);
709 atom_list[0] = XInternAtom(splash->display,
711 atom_list[1] = XInternAtom(splash->display,
713 XChangeProperty(splash->display, splash->window, atom_set, XA_ATOM, 32,
716 atom_set = XInternAtom(splash->display, "_NET_WM_ALLOWED_ACTIONS", True);
718 XChangeProperty(splash->display, splash->window, atom_set, XA_ATOM, 32,
750 XStoreName(splash->display, splash->window, "Java");
751 XMapRaised(splash->display, splash->window);