Lines Matching refs:window
4 Subject: [PATCH 16/16] xvimagesink: Apply toplevel window's position
30 GstXWindow *window;
37 window = g_slice_new0 (GstXWindow);
39 window->context = gst_xvcontext_ref (context);
40 - window->render_rect.x = window->render_rect.y = 0;
41 + window->render_rect.x = x;
42 + window->render_rect.y = y;
43 window->render_rect.w = width;
44 window->render_rect.h = height;
45 window->have_render_rect = FALSE;
49 window->win = XCreateSimpleWindow (context->disp,
59 + XSetWMNormalHints (context->disp, window->win, &hints);
83 -gst_xwindow_draw_borders (GstXWindow * window, GstVideoRectangle * rect)
84 +gst_xwindow_draw_borders (GstXWindow * window, GstVideoRectangle * render_rect,
90 g_return_if_fail (window != NULL);
95 context = window->context;
97 XSetForeground (context->disp, window->gc, context->black);
100 - if (rect->x > window->render_rect.x) {
102 XFillRectangle (context->disp, window->win, window->gc,
103 - window->render_rect.x, window->render_rect.y,
104 - rect->x - window->render_rect.x, window->render_rect.h);
111 - t2 = window->render_rect.x + window->render_rect.w;
115 XFillRectangle (context->disp, window->win, window->gc,
116 - t1, window->render_rect.y, t2 - t1, window->render_rect.h);
121 - if (rect->y > window->render_rect.y) {
123 XFillRectangle (context->disp, window->win, window->gc,
124 - window->render_rect.x, window->render_rect.y,
125 - window->render_rect.w, rect->y - window->render_rect.y);
132 - t2 = window->render_rect.y + window->render_rect.h;
136 XFillRectangle (context->disp, window->win, window->gc,
137 - window->render_rect.x, t1, window->render_rect.w, t2 - t1);
148 context = window->context;
154 - gst_xwindow_draw_borders (window, dst_crop);
155 + render_rect = window->render_rect;
156 + if (window->internal) {
157 + XMoveResizeWindow (context->disp, window->win,
158 + window->render_rect.x, window->render_rect.y,
159 + window->render_rect.w, window->render_rect.h);
160 + dst_crop->x -= window->render_rect.x;
161 + dst_crop->y -= window->render_rect.y;
166 + gst_xwindow_draw_borders (window, &render_rect, dst_crop);
170 GST_LOG ("XvShmPutImage with image %dx%d and window %dx%d, from xvimage %p",
195 GST_WARNING_OBJECT (xvimagesink, "overlay window not ready");