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);
287 XShapeCombineRectangles(splash->display, splash->window, ShapeClip, 0, 0,
290 XShapeCombineRectangles(splash->display, splash->window, ShapeBounding,
303 XShapeCombineMask (splash->display, splash->window, ShapeClip,
305 XShapeCombineMask (splash->display, splash->window , ShapeBounding,
336 ximage = XCreateImage(splash->display, splash->visual,
344 XPutImage(splash->display, splash->window,
350 XMapWindow(splash->display, splash->window);
351 XFlush(splash->display);
357 XUnmapWindow(splash->display, splash->window);
358 XMoveResizeWindow(splash->display, splash->window,
400 HandleIOError(Display * display) {
423 splash->display = XOpenDisplay(NULL);
424 if (!splash->display) {
429 shapeSupported = XShapeQueryExtension(splash->display, &shapeEventBase,
432 XShapeQueryVersion(splash->display, &shapeVersionMajor,
436 splash->screen = XDefaultScreenOfDisplay(splash->display);
447 (XImageByteOrder(splash->display) == LSBFirst ?
464 availableColors = GetNumAvailableColors(splash->display, splash->screen,
470 XCloseDisplay(splash->display);
472 splash->display = NULL;
478 splash->cmap = AllocColors(splash->display, splash->screen,
495 XStoreColors(splash->display, splash->cmap, xColors, numColors);
536 FreeColors(splash->display, splash->screen,
540 XDestroyWindow(splash->display, splash->window);
544 XFreeCursor(splash->display, splash->cursor);
545 if (splash->display)
546 XCloseDisplay(splash->display);
556 int xconn = XConnectionNumber(splash->display);
616 if (XPending(splash->display)) {
620 XNextEvent(splash->display, &evt);
626 while(XCheckTypedEvent(splash->display, Expose,
672 atom_set = XInternAtom(splash->display, "WM_PROTOCOLS", True);
674 atom_list[0] = XInternAtom(splash->display, "WM_TAKE_FOCUS", True);
675 atom_list[1] = XInternAtom(splash->display, "WM_DELETE_WINDOW", True);
677 XChangeProperty(splash->display, splash->window, atom_set, XA_ATOM, 32,
682 atom_set = XInternAtom(splash->display, "_MOTIF_WM_HINTS", True);
688 XChangeProperty(splash->display, splash->window, atom_set, atom_set,
693 atom_set = XInternAtom(splash->display, "_OL_DECOR_DEL", True);
695 atom_list[0] = XInternAtom(splash->display, "_OL_DECOR_RESIZE", True);
696 atom_list[1] = XInternAtom(splash->display, "_OL_DECOR_HEADER", True);
697 atom_list[2] = XInternAtom(splash->display, "_OL_DECOR_PIN", True);
698 atom_list[3] = XInternAtom(splash->display, "_OL_DECOR_CLOSE", True);
699 XChangeProperty(splash->display, splash->window, atom_set, XA_ATOM, 32,
709 atom_set = XInternAtom(splash->display, "_NET_WM_STATE", True);
711 atom_list[0] = XInternAtom(splash->display,
713 atom_list[1] = XInternAtom(splash->display,
715 XChangeProperty(splash->display, splash->window, atom_set, XA_ATOM, 32,
718 atom_set = XInternAtom(splash->display, "_NET_WM_ALLOWED_ACTIONS", True);
720 XChangeProperty(splash->display, splash->window, atom_set, XA_ATOM, 32,
752 XStoreName(splash->display, splash->window, "Java");
753 XMapRaised(splash->display, splash->window);