Lines Matching refs:g_wnd
68 Window g_wnd;
236 XFillRectangle(g_display, g_wnd, 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); \
260 XDrawArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \
266 XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \
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);
2062 XStoreName(g_display, g_wnd, g_title);
2063 ewmh_set_wm_name(g_wnd, g_title);
2066 mwm_hide_decorations(g_wnd);
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);
2098 XNClientWindow, g_wnd, XNFocusWindow, g_wnd, NULL);
2105 XSelectInput(g_display, g_wnd, input_mask);
2109 XMapWindow(g_display, g_wnd);
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);
2177 return g_wnd ? True : False;
2186 XDestroyWindow(g_display, g_wnd);
2187 g_wnd = 0;
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);
2273 XIconifyWindow(g_display, g_wnd, DefaultScreen(g_display));
2307 if (xevent.xmotion.window == g_wnd)
2338 if (!g_wnd)
2356 if (xevent.xvisibility.window == g_wnd)
2440 XMoveWindow(g_display, g_wnd,
2447 XSetInputFocus(g_display, g_wnd, RevertToPointerRoot,
2450 if (xevent.xmotion.window == g_wnd)
2470 XGrabKeyboard(g_display, g_wnd, True,
2513 XSetInputFocus(g_display, g_wnd, RevertToPointerRoot,
2518 XGrabKeyboard(g_display, g_wnd, True,
2539 if (xevent.xexpose.window == g_wnd)
2595 if (xevent.xproperty.window == g_wnd)
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);
2816 XCopyArea(g_display, g_backstore, g_wnd, g_gc, x, y, cx, cy, x, y);
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,
2849 bitmap = XCreatePixmap(g_display, g_wnd, width, height, 1);
3007 XDefineCursor(g_display, g_wnd, g_current_cursor);
3122 map = XCreateColormap(g_display, g_wnd, g_visual, AllocAll);
3151 XSetWindowColormap(g_display, g_wnd, (Colormap) map);
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,
3295 g_wnd, 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);
3365 XDrawLine(g_display, g_wnd, g_gc, startx, starty, endx, endy);
3489 XDrawLines(g_display, g_wnd, g_gc, (XPoint *) points, npoints, CoordModePrevious);
3745 XCopyArea(g_display, g_backstore, g_wnd, g_gc, boxx,
3755 XCopyArea(g_display, g_backstore, g_wnd, g_gc, clipx,
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);
3809 XCopyArea(g_display, g_backstore, g_wnd, g_gc, x, y, cx, cy, x, y);
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,
3930 XMapWindow(g_display, g_wnd);
3935 XUnmapWindow(g_display, g_wnd);