Lines Matching defs:display
145 /* Saved X11 local (client) display. */
3496 * Returns 0 and a suitable display number for the DISPLAY variable
3569 error("Failed to allocate internet-domain X11 display socket.");
3601 /* Return the display number for the DISPLAY environment variable. */
3637 const char *display;
3644 display = getenv("DISPLAY");
3645 if (!display) {
3654 /* Check if the display is from launchd. */
3656 if (strncmp(display, "/tmp/launch", 11) == 0) {
3657 sock = connect_local_xsocket_path(display);
3661 /* OK, we now have a connection to the display. */
3669 if (strncmp(display, "unix:", 5) == 0 ||
3670 display[0] == ':') {
3672 if (sscanf(strrchr(display, ':') + 1, "%u", &display_number) != 1) {
3673 error("Could not parse display number from DISPLAY: %.100s",
3674 display);
3682 /* OK, we now have a connection to the display. */
3689 strlcpy(buf, display, sizeof(buf));
3692 error("Could not find ':' in DISPLAY: %.100s", display);
3696 /* buf now contains the host name. But first we parse the display number. */
3698 error("Could not parse display number from DISPLAY: %.100s",
3699 display);
3720 /* Connect it to the display. */
3765 /* Obtain a connection to the real X display. */