Lines Matching defs:pDisplay
70 winClipboardErrorHandler (Display *pDisplay, XErrorEvent *pErr);
73 winClipboardIOErrorHandler (Display *pDisplay);
94 Display *pDisplay = NULL;
173 pDisplay = XOpenDisplay (szDisplay);
174 if (pDisplay == NULL)
186 while (pDisplay == NULL && iRetries < WIN_CONNECT_RETRIES);
189 if (pDisplay == NULL)
196 g_pClipboardDisplay = pDisplay;
202 iConnectionNumber = ConnectionNumber (pDisplay);
220 atomClipboard = XInternAtom (pDisplay, "CLIPBOARD", False);
221 atomClipboardManager = XInternAtom (pDisplay, "CLIPBOARD_MANAGER", False);
224 iWindow = XCreateSimpleWindow (pDisplay,
225 DefaultRootWindow (pDisplay),
229 BlackPixel (pDisplay, 0),
230 BlackPixel (pDisplay, 0));
238 if (XSelectInput (pDisplay,
257 iReturn = XSetSelectionOwner (pDisplay, XA_PRIMARY,
260 XGetSelectionOwner (pDisplay, XA_PRIMARY) != iWindow)
267 iReturn = XSetSelectionOwner (pDisplay, atomClipboard,
270 XGetSelectionOwner (pDisplay, atomClipboard) != iWindow)
285 pDisplay,
352 pDisplay,
381 if (pDisplay && iWindow)
383 iReturn = XDestroyWindow (pDisplay, iWindow);
404 XSync (pDisplay, TRUE);
407 XSelectInput (pDisplay,
408 DefaultRootWindow (pDisplay),
412 if (pDisplay)
414 XCloseDisplay (pDisplay);
431 winClipboardErrorHandler (Display *pDisplay, XErrorEvent *pErr)
435 XGetErrorText (pDisplay,
454 winClipboardIOErrorHandler (Display *pDisplay)