Lines Matching defs:wnd

73 	Window wnd;
79 Window wnd;
237 ON_ALL_SEAMLESS_WINDOWS(XFillRectangle, (g_display, sw->wnd, g_gc, x-sw->xoffset, y-sw->yoffset, cx, cy)); \
252 ON_ALL_SEAMLESS_WINDOWS(seamless_XFillPolygon, (sw->wnd, p, np, sw->xoffset, sw->yoffset)); \
261 ON_ALL_SEAMLESS_WINDOWS(XDrawArc, (g_display, sw->wnd, g_gc, x-sw->xoffset, y-sw->yoffset, 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)); \
319 sw_get_window_by_wnd(Window wnd)
324 if (sw->wnd == wnd)
343 XDestroyWindow(g_display, sw->group->wnd);
356 /* Move all windows except wnd to new desktop */
358 sw_all_to_desktop(Window wnd, unsigned int desktop)
363 if (sw->wnd == wnd)
367 ewmh_move_to_desktop(sw->wnd, desktop);
383 XGetWindowAttributes(g_display, sw->wnd, &wa);
384 XTranslateCoordinates(g_display, sw->wnd, wa.root,
463 while (children[i] != sw->wnd)
516 sg->wnd =
528 mwm_hide_decorations(Window wnd)
545 XChangeProperty(g_display, wnd, hintsatom, hintsatom, 32, PropModeReplace,
582 sw_wait_configurenotify(Window wnd, unsigned long serial)
590 context.window = wnd;
616 sw_get_toplevel(Window wnd)
624 XQueryTree(g_display, wnd, &root, &parent, &child_list, &num_children);
634 wnd = parent;
637 return wnd;
641 /* Check if wnd is already behind a window wrt stacking order */
643 sw_window_is_behind(Window wnd, Window behind)
652 wnd = sw_get_toplevel(wnd);
664 else if (child_list[i-1] == wnd)
676 warning("sw_window_is_behind: Unable to find window 0x%lx\n", wnd);
1827 sts = XFetchName(g_display, sw->wnd, &name);
2608 sw->state = ewmh_get_window_state(sw->wnd);
2615 sw->desktop = ewmh_get_window_desktop(sw->wnd);
2616 sw_all_to_desktop(sw->wnd, sw->desktop);
2818 (g_display, g_backstore, sw->wnd, g_gc, x, y, cx, cy,
2825 (g_display, g_wnd, sw->wnd, g_gc, x, y, cx, cy,
3008 ON_ALL_SEAMLESS_WINDOWS(XDefineCursor, (g_display, sw->wnd, g_current_cursor));
3152 ON_ALL_SEAMLESS_WINDOWS(XSetWindowColormap, (g_display, sw->wnd, (Colormap) map));
3282 (g_display, g_ownbackstore ? g_backstore : g_wnd, sw->wnd, g_gc,
3305 sw->wnd, g_gc, x, y, cx, cy, x - sw->xoffset, y - sw->yoffset));
3318 (g_display, (Pixmap) src, sw->wnd, g_gc,
3366 ON_ALL_SEAMLESS_WINDOWS(XDrawLine, (g_display, sw->wnd, g_gc,
3495 (sw->wnd, (XPoint *) points, npoints, sw->xoffset, sw->yoffset));
3586 /* warning, this function only draws on wnd or backstore, not both */
3748 (g_display, g_backstore, sw->wnd, g_gc,
3758 (g_display, g_backstore, sw->wnd, g_gc,
3811 (g_display, g_backstore, sw->wnd, g_gc,
3818 (g_display, g_wnd, sw->wnd, g_gc, x, y, cx, cy,
3869 XDestroyWindow(g_display, g_seamless_windows->wnd);
3927 XDestroyWindow(g_display, g_seamless_windows->wnd);
3947 Window wnd;
3964 wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), -1, -1, 1, 1, 0, g_depth,
3968 XStoreName(g_display, wnd, "SeamlessRDP");
3969 ewmh_set_wm_name(wnd, "SeamlessRDP");
3971 mwm_hide_decorations(wnd);
3978 XSetClassHint(g_display, wnd, classhints);
3987 XSetWMNormalHints(g_display, wnd, sizehints);
3994 XSetTransientForHint(g_display, wnd, RootWindowOfScreen(g_screen));
3997 ewmh_set_window_popup(wnd);
4004 XSetTransientForHint(g_display, wnd, sw_parent->wnd);
4014 XSetTransientForHint(g_display, wnd, RootWindowOfScreen(g_screen));
4015 ewmh_set_window_modal(wnd);
4021 ewmh_set_window_above(wnd);
4029 XSelectInput(g_display, wnd, input_mask);
4032 XSetWMProtocols(g_display, wnd, &g_kill_atom, 1);
4038 sw->wnd = wnd;
4060 wmhints->window_group = sw->group->wnd;
4061 XSetWMHints(g_display, sw->wnd, wmhints);
4082 XDestroyWindow(g_display, sw->wnd);
4101 XDestroyWindow(g_display, sw->wnd);
4164 ewmh_set_icon(sw->wnd, width, height, sw->icon_buffer);
4191 ewmh_del_icon(sw->wnd, width, height);
4234 XMoveResizeWindow(g_display, sw->wnd, sw->xoffset, sw->yoffset, sw->width, sw->height);
4269 values.sibling = sw_behind->wnd;
4273 if (ewmh_is_window_above(sw->wnd))
4275 if (!ewmh_is_window_above(sw_behind->wnd))
4285 if (ewmh_is_window_above(sw_behind->wnd))
4301 XReconfigureWMWindow(g_display, sw->wnd, DefaultScreen(g_display), value_mask, &values);
4302 sw_wait_configurenotify(sw->wnd, restack_serial);
4309 ewmh_set_window_above(sw->wnd);
4330 XStoreName(g_display, sw->wnd, title);
4331 ewmh_set_wm_name(sw->wnd, title);
4354 ewmh_change_state(sw->wnd, state);
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);
4421 sw->wnd, g_gc,