+
+ CommonManage (vout);
+ if (vout->i_changes & VOUT_SIZE_CHANGE)
+ { /* TODO: factor this code with XV and X11 Init() */
+ unsigned x, y, width, height;
+
+ if (GetWindowSize (p_sys->embed, p_sys->conn, &width, &height))
+ return VLC_EGENERIC;
+ vout_PlacePicture (vout, width, height, &x, &y, &width, &height);
+
+ const uint32_t values[] = { x, y, width, height, };
+ xcb_configure_window (p_sys->conn, p_sys->window, XCB_CONFIG_WINDOW_X |
+ XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH |
+ XCB_CONFIG_WINDOW_HEIGHT, values);
+ vout->p_sys->width = width; // XXX: <-- this is useless, as the zoom is
+ vout->p_sys->height = height; // handled with VOUT_SET_SIZE anyway.
+ vout->i_changes &= ~VOUT_SIZE_CHANGE;
+ }