Lines Matching refs:xdisplay
40 Display *xdisplay = NULL; variable
46 x_io_error_handler (Display *xdisplay) in x_io_error_handler() argument
217 if (xdisplay != NULL) in open_x11()
218 return xdisplay; in open_x11()
220 xdisplay = XOpenDisplay (NULL); in open_x11()
221 if (xdisplay != NULL) in open_x11()
223 verbose ("Connected to X11 display '%s'\n", DisplayString (xdisplay)); in open_x11()
226 return xdisplay; in open_x11()
307 owner = XGetSelectionOwner (xdisplay, selection_atom); in x11_get_address()
314 result = XGetWindowProperty (xdisplay, owner, address_atom, 0, 1024, False, in x11_get_address()
327 result = XGetWindowProperty (xdisplay, owner, pid_atom, 0, sizeof pid, False, in x11_get_address()
351 XGrabServer (xdisplay); in set_address_in_x11()
367 wid = XCreateWindow (xdisplay, RootWindow (xdisplay, 0), -20, -20, 10, 10, in set_address_in_x11()
373 XChangeProperty (xdisplay, wid, address_atom, XA_STRING, 8, PropModeReplace, in set_address_in_x11()
376 XChangeProperty (xdisplay, wid, pid_atom, XA_CARDINAL, 32, PropModeReplace, in set_address_in_x11()
380 XSetSelectionOwner (xdisplay, selection_atom, wid, CurrentTime); in set_address_in_x11()
384 XUngrabServer (xdisplay); in set_address_in_x11()
387 XFlush (xdisplay); in set_address_in_x11()
448 return open_x11 () != NULL && init_x_atoms (xdisplay); in x11_init()
454 if (xdisplay != NULL) in x11_handle_event()
456 while (XPending (xdisplay)) in x11_handle_event()
459 XNextEvent (xdisplay, &ignored); in x11_handle_event()