Lines Matching refs:display
152 …XPutImage(xd->hdr.display, xd->window, xd->gc, xd->ximage, xd->flush_area.x1, xd->flush_area.y1, x… in x11_flush_cb()
187 xd->ximage = XCreateImage(xd->hdr.display, xd->visual, xd->dplanes, ZPixmap, 0, xd->xdata, in x11_resolution_evt_cb()
208 XFreeGC(xd->hdr.display, xd->gc); in x11_disp_delete_evt_cb()
209 XUnmapWindow(xd->hdr.display, xd->window); in x11_disp_delete_evt_cb()
210 XDestroyWindow(xd->hdr.display, xd->window); in x11_disp_delete_evt_cb()
211 XFlush(xd->hdr.display); in x11_disp_delete_evt_cb()
229 Pixmap empty_bitmap = XCreateBitmapFromData(xd->hdr.display, xd->window, empty_data, 1, 1); in x11_hide_cursor()
230 …Cursor inv_cursor = XCreatePixmapCursor(xd->hdr.display, empty_bitmap, empty_bitmap, &black, &blac… in x11_hide_cursor()
231 XDefineCursor(xd->hdr.display, xd->window, inv_cursor); in x11_hide_cursor()
232 XFreeCursor(xd->hdr.display, inv_cursor); in x11_hide_cursor()
233 XFreePixmap(xd->hdr.display, empty_bitmap); in x11_hide_cursor()
256 while(XCheckIfEvent(xd->hdr.display, &event, is_disp_event, NULL)) { in x11_event_handler()
261 …XPutImage(xd->hdr.display, xd->window, xd->gc, xd->ximage, 0, 0, 0, 0, event.xexpose.width, event.… in x11_event_handler()
307 xd->hdr.display = XOpenDisplay(NULL); in x11_window_create()
308 int screen = XDefaultScreen(xd->hdr.display); in x11_window_create()
309 xd->visual = XDefaultVisual(xd->hdr.display, screen); in x11_window_create()
316 unsigned long col_fg = BlackPixel(xd->hdr.display, screen); in x11_window_create()
317 unsigned long col_bg = WhitePixel(xd->hdr.display, screen); in x11_window_create()
319 xd->window = XCreateSimpleWindow(xd->hdr.display, DefaultRootWindow(xd->hdr.display), in x11_window_create()
322 xd->window = XCreateWindow(xd->hdr.display, XDefaultRootWindow(xd->hdr.display), in x11_window_create()
324 XDefaultDepth(xd->hdr.display, screen), InputOutput, in x11_window_create()
328 XSetStandardProperties(xd->hdr.display, xd->window, title, NULL, None, NULL, 0, NULL); in x11_window_create()
329 xd->gc = XCreateGC(xd->hdr.display, xd->window, 0, 0); in x11_window_create()
332 XSelectInput(xd->hdr.display, xd->window, in x11_window_create()
335 xd->wmDeleteMessage = XInternAtom(xd->hdr.display, "WM_DELETE_WINDOW", False); in x11_window_create()
336 XSetWMProtocols(xd->hdr.display, xd->window, &xd->wmDeleteMessage, 1); in x11_window_create()
342 xd->dplanes = XDisplayPlanes(xd->hdr.display, screen); in x11_window_create()
344 xd->ximage = XCreateImage(xd->hdr.display, xd->visual, xd->dplanes, ZPixmap, 0, xd->xdata, in x11_window_create()
348 XMapRaised(xd->hdr.display, xd->window); in x11_window_create()