Lines Matching defs:g_display

64 Display *g_display;
208 XSetClipRectangles(g_display, g_gc, 0, 0, &rect, 1, YXBanded); \
211 XSetClipRectangles(g_display, g_gc, 0, 0, &g_clip_rectangle, 1, YXBanded); \
219 XFillPolygon(g_display, d, g_gc, points, npoints, Complex, CoordModePrevious);
229 XDrawLines(g_display, d, g_gc, points, npoints, CoordModePrevious);
236 XFillRectangle(g_display, g_wnd, g_gc, x, y, cx, cy); \
237 ON_ALL_SEAMLESS_WINDOWS(XFillRectangle, (g_display, sw->wnd, g_gc, x-sw->xoffset, y-sw->yoffset, cx, cy)); \
239 XFillRectangle(g_display, g_backstore, g_gc, x, y, cx, cy); \
244 XFillRectangle(g_display, g_ownbackstore ? g_backstore : g_wnd, g_gc, x, y, cx, cy); \
249 XFillPolygon(g_display, g_wnd, g_gc, p, np, Complex, CoordModePrevious); \
251 XFillPolygon(g_display, g_backstore, g_gc, p, np, Complex, CoordModePrevious); \
260 XDrawArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \
261 ON_ALL_SEAMLESS_WINDOWS(XDrawArc, (g_display, sw->wnd, g_gc, x-sw->xoffset, y-sw->yoffset, cx, cy, 0, 360*64)); \
263 XDrawArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \
266 XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \
267 ON_ALL_SEAMLESS_WINDOWS(XFillArc, (g_display, sw->wnd, g_gc, x-sw->xoffset, y-sw->yoffset, cx, cy, 0, 360*64)); \
269 XFillArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \
280 #define SET_FOREGROUND(col) XSetForeground(g_display, g_gc, TRANSLATE(col));
281 #define SET_BACKGROUND(col) XSetBackground(g_display, g_gc, TRANSLATE(col));
302 #define SET_FUNCTION(rop2) { if (rop2 != ROP2_COPY) XSetFunction(g_display, g_gc, rop2_map[rop2]); }
303 #define RESET_FUNCTION(rop2) { if (rop2 != ROP2_COPY) XSetFunction(g_display, g_gc, GXcopy); }
343 XDestroyWindow(g_display, sw->group->wnd);
383 XGetWindowAttributes(g_display, sw->wnd, &wa);
384 XTranslateCoordinates(g_display, sw->wnd, wa.root,
455 status = XQueryTree(g_display, RootWindowOfScreen(g_screen),
517 XCreateWindow(g_display, RootWindowOfScreen(g_screen), -1, -1, 1, 1, 0,
538 hintsatom = XInternAtom(g_display, "_MOTIF_WM_HINTS", False);
545 XChangeProperty(g_display, wnd, hintsatom, hintsatom, 32, PropModeReplace,
598 if (XCheckIfEvent(g_display, &xevent, sw_configurenotify_p, (XPointer) & context))
624 XQueryTree(g_display, wnd, &root, &parent, &child_list, &num_children);
655 XQueryTree(g_display, RootWindowOfScreen(g_screen), &dummy1, &dummy2, &child_list,
710 XCreateSimpleWindow(g_display, RootWindowOfScreen(g_screen), 0, 0, 20, 20,
713 XStoreName(g_display, wnds[i], name);
724 XSetTransientForHint(g_display, wnds[i], RootWindowOfScreen(g_screen));
728 XSelectInput(g_display, wnds[i], StructureNotifyMask);
734 XMapRaised(g_display, wnds[2]); /* bottom */
737 XWindowEvent(g_display, wnds[2], StructureNotifyMask, &xevent);
740 XMapRaised(g_display, wnds[0]); /* top */
743 XWindowEvent(g_display, wnds[0], StructureNotifyMask, &xevent);
746 XMapRaised(g_display, wnds[1]); /* middle */
749 XWindowEvent(g_display, wnds[1], StructureNotifyMask, &xevent);
760 XDestroyWindow(g_display, wnds[i]);
768 restack_serial = XNextRequest(g_display);
769 XReconfigureWMWindow(g_display, wnds[1], DefaultScreen(g_display), CWStackMode | CWSibling,
789 XDestroyWindow(g_display, wnds[i]);
792 XWindowEvent(g_display, wnds[i], StructureNotifyMask, &xevent);
1551 pointer_buttons = XGetPointerMapping(g_display, phys_to_log_map, sizeof(phys_to_log_map));
1573 KeyCode keycode = XKeysymToKeycode(g_display, keysym);
1629 g_server_depth = DisplayPlanes(g_display, DefaultScreen(g_display));
1632 pfm = XListPixmapFormats(g_display, &pixmap_formats_count);
1636 XCloseDisplay(g_display);
1644 XGetVisualInfo(g_display, VisualClassMask | VisualScreenMask, &template,
1752 XGetVisualInfo(g_display,
1758 XCloseDisplay(g_display);
1827 sts = XFetchName(g_display, sw->wnd, &name);
1852 g_display = XOpenDisplay(NULL);
1853 if (g_display == NULL)
1865 g_xserver_be = (ImageByteOrder(g_display) == MSBFirst);
1866 screen_num = DefaultScreen(g_display);
1867 g_x_socket = ConnectionNumber(g_display);
1868 g_screen = ScreenOfDisplay(g_display, screen_num);
1891 XCreateColormap(g_display, RootWindowOfScreen(g_screen), g_visual,
1903 g_mod_map = XGetModifierMapping(g_display);
1909 g_IM = XOpenIM(g_display, NULL, NULL, NULL);
1983 XFreeGC(g_display, g_gc);
1984 XCloseDisplay(g_display);
1985 g_display = NULL;
2039 g_wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), g_xpos, g_ypos, wndwidth,
2046 g_gc = XCreateGC(g_display, g_wnd, 0, NULL);
2051 g_create_bitmap_gc = XCreateGC(g_display, g_wnd, 0, NULL);
2055 g_backstore = XCreatePixmap(g_display, g_wnd, g_width, g_height, g_depth);
2058 XSetForeground(g_display, g_gc, BlackPixelOfScreen(g_screen));
2059 XFillRectangle(g_display, g_backstore, g_gc, 0, 0, g_width, g_height);
2062 XStoreName(g_display, g_wnd, g_title);
2072 XSetClassHint(g_display, g_wnd, classhints);
2084 XSetWMNormalHints(g_display, g_wnd, sizehints);
2090 XReparentWindow(g_display, g_wnd, (Window) g_embed_wnd, 0, 0);
2105 XSelectInput(g_display, g_wnd, input_mask);
2107 XSelectInput(g_display, RootWindowOfScreen(g_screen), StructureNotifyMask);
2109 XMapWindow(g_display, g_wnd);
2114 XMaskEvent(g_display, VisibilityChangeMask, &xevent);
2123 g_protocol_atom = XInternAtom(g_display, "WM_PROTOCOLS", True);
2124 g_kill_atom = XInternAtom(g_display, "WM_DELETE_WINDOW", True);
2125 XSetWMProtocols(g_display, g_wnd, &g_kill_atom, 1);
2153 XSetWMNormalHints(g_display, g_wnd, sizehints);
2159 XResizeWindow(g_display, g_wnd, g_width, g_height);
2165 bs = XCreatePixmap(g_display, g_wnd, g_width, g_height, g_depth);
2166 XSetForeground(g_display, g_gc, BlackPixelOfScreen(g_screen));
2167 XFillRectangle(g_display, bs, g_gc, 0, 0, g_width, g_height);
2168 XCopyArea(g_display, g_backstore, bs, g_gc, 0, 0, g_width, g_height, 0, 0);
2169 XFreePixmap(g_display, g_backstore);
2186 XDestroyWindow(g_display, g_wnd);
2191 XFreePixmap(g_display, g_backstore);
2208 contents = XCreatePixmap(g_display, g_wnd, g_width, g_height, g_depth);
2209 XCopyArea(g_display, g_wnd, contents, g_gc, 0, 0, g_width, g_height, 0, 0);
2216 XDefineCursor(g_display, g_wnd, g_current_cursor);
2220 XCopyArea(g_display, contents, g_wnd, g_gc, 0, 0, g_width, g_height, 0, 0);
2221 XFreePixmap(g_display, contents);
2273 XIconifyWindow(g_display, g_wnd, DefaultScreen(g_display));
2334 while ((XPending(g_display) > 0) && events++ < 20)
2336 XNextEvent(g_display, &xevent);
2344 && xevent.xany.window == DefaultRootWindow(g_display))
2440 XMoveWindow(g_display, g_wnd,
2447 XSetInputFocus(g_display, g_wnd, RevertToPointerRoot,
2470 XGrabKeyboard(g_display, g_wnd, True,
2504 XUngrabKeyboard(g_display, CurrentTime);
2513 XSetInputFocus(g_display, g_wnd, RevertToPointerRoot,
2518 XGrabKeyboard(g_display, g_wnd, True,
2525 XUngrabKeyboard(g_display, CurrentTime);
2533 XUngrabPointer(g_display, CurrentTime);
2541 XCopyArea(g_display, g_backstore, xevent.xexpose.window,
2552 XCopyArea(g_display, g_backstore,
2573 g_mod_map = XGetModifierMapping(g_display);
2597 if (xevent.xproperty.window == DefaultRootWindow(g_display))
2631 && xevent.xconfigure.window == DefaultRootWindow(g_display))
2637 XSync(g_display, False);
2754 XWarpPointer(g_display, g_wnd, g_wnd, 0, 0, 0, 0, x, y);
2778 bitmap = XCreatePixmap(g_display, g_wnd, width, height, g_depth);
2779 image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0,
2782 XPutImage(g_display, bitmap, g_create_bitmap_gc, image, 0, 0, 0, 0, width, height);
2810 image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0,
2815 XPutImage(g_display, g_backstore, g_gc, image, 0, 0, x, y, cx, cy);
2816 XCopyArea(g_display, g_backstore, g_wnd, g_gc, x, y, cx, cy, x, y);
2818 (g_display, g_backstore, sw->wnd, g_gc, x, y, cx, cy,
2823 XPutImage(g_display, g_wnd, g_gc, image, 0, 0, x, y, cx, cy);
2825 (g_display, g_wnd, sw->wnd, g_gc, x, y, cx, cy,
2837 XFreePixmap(g_display, (Pixmap) bmp);
2849 bitmap = XCreatePixmap(g_display, g_wnd, width, height, 1);
2851 g_create_glyph_gc = XCreateGC(g_display, bitmap, 0, NULL);
2853 image = XCreateImage(g_display, g_visual, 1, ZPixmap, 0, (char *) data,
2859 XPutImage(g_display, bitmap, g_create_glyph_gc, image, 0, 0, 0, 0, width, height);
2868 XFreePixmap(g_display, (Pixmap) glyph);
2993 XCreatePixmapCursor(g_display, (Pixmap) cursorglyph,
3007 XDefineCursor(g_display, g_wnd, g_current_cursor);
3008 ON_ALL_SEAMLESS_WINDOWS(XDefineCursor, (g_display, sw->wnd, g_current_cursor));
3014 XFreeCursor(g_display, (Cursor) cursor);
3047 if (XAllocColor(g_display, g_xcolmap, &xentry) == 0)
3061 XQueryColor(g_display,
3062 DefaultColormap(g_display,
3063 DefaultScreen(g_display)),
3122 map = XCreateColormap(g_display, g_wnd, g_visual, AllocAll);
3123 XStoreColors(g_display, map, xcolours, ncolours);
3136 XFreeColormap(g_display, (Colormap) map);
3151 XSetWindowColormap(g_display, g_wnd, (Colormap) map);
3152 ON_ALL_SEAMLESS_WINDOWS(XSetWindowColormap, (g_display, sw->wnd, (Colormap) map));
3163 XSetClipRectangles(g_display, g_gc, 0, 0, &g_clip_rectangle, 1, YXBanded);
3173 XSetClipRectangles(g_display, g_gc, 0, 0, &g_clip_rectangle, 1, YXBanded);
3179 XBell(g_display, 0);
3222 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3223 XSetStipple(g_display, g_gc, fill);
3224 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3226 XSetFillStyle(g_display, g_gc, FillSolid);
3227 XSetTSOrigin(g_display, g_gc, 0, 0);
3239 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3240 XSetStipple(g_display, g_gc, fill);
3241 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3243 XSetFillStyle(g_display, g_gc, FillSolid);
3244 XSetTSOrigin(g_display, g_gc, 0, 0);
3250 XSetFillStyle(g_display, g_gc, FillTiled);
3251 XSetTile(g_display, g_gc, fill);
3252 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3254 XSetFillStyle(g_display, g_gc, FillSolid);
3255 XSetTSOrigin(g_display, g_gc, 0, 0);
3263 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3264 XSetStipple(g_display, g_gc, fill);
3265 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3267 XSetFillStyle(g_display, g_gc, FillSolid);
3268 XSetTSOrigin(g_display, g_gc, 0, 0);
3280 XCopyArea(g_display, g_backstore, g_wnd, g_gc, x, y, cx, cy, x, y);
3282 (g_display, g_ownbackstore ? g_backstore : g_wnd, sw->wnd, g_gc,
3294 XCopyArea(g_display, g_Unobscured ? g_wnd : g_backstore,
3296 XCopyArea(g_display, g_backstore, g_backstore, g_gc, srcx, srcy, cx, cy, x, y);
3300 XCopyArea(g_display, g_wnd, g_wnd, g_gc, srcx, srcy, cx, cy, x, y);
3304 (g_display, g_ownbackstore ? g_backstore : g_wnd,
3316 XCopyArea(g_display, (Pixmap) src, g_wnd, g_gc, srcx, srcy, cx, cy, x, y);
3318 (g_display, (Pixmap) src, sw->wnd, g_gc,
3321 XCopyArea(g_display, (Pixmap) src, g_backstore, g_gc, srcx, srcy, cx, cy, x, y);
3365 XDrawLine(g_display, g_wnd, g_gc, startx, starty, endx, endy);
3366 ON_ALL_SEAMLESS_WINDOWS(XDrawLine, (g_display, sw->wnd, g_gc,
3370 XDrawLine(g_display, g_backstore, g_gc, startx, starty, endx, endy);
3397 XSetFillRule(g_display, g_gc, EvenOddRule);
3400 XSetFillRule(g_display, g_gc, WindingRule);
3423 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3424 XSetStipple(g_display, g_gc, fill);
3425 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3427 XSetFillStyle(g_display, g_gc, FillSolid);
3428 XSetTSOrigin(g_display, g_gc, 0, 0);
3440 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3441 XSetStipple(g_display, g_gc, fill);
3442 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3444 XSetFillStyle(g_display, g_gc, FillSolid);
3445 XSetTSOrigin(g_display, g_gc, 0, 0);
3451 XSetFillStyle(g_display, g_gc, FillTiled);
3452 XSetTile(g_display, g_gc, fill);
3453 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3455 XSetFillStyle(g_display, g_gc, FillSolid);
3456 XSetTSOrigin(g_display, g_gc, 0, 0);
3464 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3465 XSetStipple(g_display, g_gc, fill);
3466 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3468 XSetFillStyle(g_display, g_gc, FillSolid);
3469 XSetTSOrigin(g_display, g_gc, 0, 0);
3489 XDrawLines(g_display, g_wnd, g_gc, (XPoint *) points, npoints, CoordModePrevious);
3491 XDrawLines(g_display, g_backstore, g_gc, (XPoint *) points, npoints,
3528 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3529 XSetStipple(g_display, g_gc, fill);
3530 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3532 XSetFillStyle(g_display, g_gc, FillSolid);
3533 XSetTSOrigin(g_display, g_gc, 0, 0);
3545 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3546 XSetStipple(g_display, g_gc, fill);
3547 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3549 XSetFillStyle(g_display, g_gc, FillSolid);
3550 XSetTSOrigin(g_display, g_gc, 0, 0);
3556 XSetFillStyle(g_display, g_gc, FillTiled);
3557 XSetTile(g_display, g_gc, fill);
3558 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3560 XSetFillStyle(g_display, g_gc, FillSolid);
3561 XSetTSOrigin(g_display, g_gc, 0, 0);
3569 XSetFillStyle(g_display, g_gc, FillOpaqueStippled);
3570 XSetStipple(g_display, g_gc, fill);
3571 XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin);
3573 XSetFillStyle(g_display, g_gc, FillSolid);
3574 XSetTSOrigin(g_display, g_gc, 0, 0);
3596 XSetFillStyle(g_display, g_gc,
3598 XSetStipple(g_display, g_gc, (Pixmap) glyph);
3599 XSetTSOrigin(g_display, g_gc, x, y);
3603 XSetFillStyle(g_display, g_gc, FillSolid);
3632 XSetStipple(g_display, g_gc, (Pixmap) glyph->pixmap);\
3633 XSetTSOrigin(g_display, g_gc, x1, y1);\
3671 XSetFillStyle(g_display, g_gc, FillStippled);
3739 XSetFillStyle(g_display, g_gc, FillSolid);
3745 XCopyArea(g_display, g_backstore, g_wnd, g_gc, boxx,
3748 (g_display, g_backstore, sw->wnd, g_gc,
3755 XCopyArea(g_display, g_backstore, g_wnd, g_gc, clipx,
3758 (g_display, g_backstore, sw->wnd, g_gc,
3774 image = XGetImage(g_display, g_backstore, x, y, cx, cy, AllPlanes, ZPixmap);
3779 pix = XCreatePixmap(g_display, g_wnd, cx, cy, g_depth);
3780 XCopyArea(g_display, g_wnd, pix, g_gc, x, y, cx, cy, 0, 0);
3781 image = XGetImage(g_display, pix, 0, 0, cx, cy, AllPlanes, ZPixmap);
3783 XFreePixmap(g_display, pix);
3803 image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0,
3808 XPutImage(g_display, g_backstore, g_gc, image, 0, 0, x, y, cx, cy);
3809 XCopyArea(g_display, g_backstore, g_wnd, g_gc, x, y, cx, cy, x, y);
3811 (g_display, g_backstore, sw->wnd, g_gc,
3816 XPutImage(g_display, g_wnd, g_gc, image, 0, 0, x, y, cx, cy);
3818 (g_display, g_wnd, sw->wnd, g_gc, x, y, cx, cy,
3834 XFlush(g_display);
3869 XDestroyWindow(g_display, g_seamless_windows->wnd);
3927 XDestroyWindow(g_display, g_seamless_windows->wnd);
3930 XMapWindow(g_display, g_wnd);
3935 XUnmapWindow(g_display, g_wnd);
3964 wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), -1, -1, 1, 1, 0, g_depth,
3968 XStoreName(g_display, wnd, "SeamlessRDP");
3978 XSetClassHint(g_display, wnd, classhints);
3987 XSetWMNormalHints(g_display, wnd, sizehints);
3994 XSetTransientForHint(g_display, wnd, RootWindowOfScreen(g_screen));
4004 XSetTransientForHint(g_display, wnd, sw_parent->wnd);
4014 XSetTransientForHint(g_display, wnd, RootWindowOfScreen(g_screen));
4029 XSelectInput(g_display, wnd, input_mask);
4032 XSetWMProtocols(g_display, wnd, &g_kill_atom, 1);
4061 XSetWMHints(g_display, sw->wnd, wmhints);
4082 XDestroyWindow(g_display, sw->wnd);
4101 XDestroyWindow(g_display, sw->wnd);
4234 XMoveResizeWindow(g_display, sw->wnd, sw->xoffset, sw->yoffset, sw->width, sw->height);
4300 restack_serial = XNextRequest(g_display);
4301 XReconfigureWMWindow(g_display, sw->wnd, DefaultScreen(g_display), value_mask, &values);
4330 XStoreName(g_display, sw->wnd, title);
4355 XMapWindow(g_display, sw->wnd);
4366 hints = XGetWMHints(g_display, sw->wnd);
4371 XSetWMHints(g_display, sw->wnd, hints);
4374 XMapWindow(g_display, sw->wnd);
4377 XIconifyWindow(g_display, sw->wnd, DefaultScreen(g_display));
4397 XDestroyWindow(g_display, g_seamless_windows->wnd);
4420 XCopyArea(g_display, g_backstore,