From: RĂ©mi Denis-Courmont Date: Sat, 6 Mar 2010 16:36:21 +0000 (+0200) Subject: XCB: set window provider requested position from video-x and video-y X-Git-Tag: 1.1.0-pre1~472 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=764088d5b7cd19da4aa29d133ff3ad0905cfc716;p=vlc XCB: set window provider requested position from video-x and video-y Note that only the Qt4 provider seem to use the values this far. Also, most window managers will move the window wherever they see fit anyway. --- diff --git a/modules/video_output/xcb/common.c b/modules/video_output/xcb/common.c index 9b714f6f6b..d7e90d23da 100644 --- a/modules/video_output/xcb/common.c +++ b/modules/video_output/xcb/common.c @@ -125,6 +125,8 @@ vout_window_t *GetWindow (vout_display_t *vd, memset( &wnd_cfg, 0, sizeof(wnd_cfg) ); wnd_cfg.type = VOUT_WINDOW_TYPE_XID; + wnd_cfg.x = var_InheritInteger (vd, "video-x"); + wnd_cfg.y = var_InheritInteger (vd, "video-y"); wnd_cfg.width = vd->cfg->display.width; wnd_cfg.height = vd->cfg->display.height; diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c index 1b80b3d02c..573ea24896 100644 --- a/modules/video_output/xcb/glx.c +++ b/modules/video_output/xcb/glx.c @@ -90,6 +90,8 @@ static vout_window_t *MakeWindow (vout_display_t *vd) memset (&wnd_cfg, 0, sizeof (wnd_cfg)); wnd_cfg.type = VOUT_WINDOW_TYPE_XID; + wnd_cfg.x = var_InheritInteger (vd, "video-x"); + wnd_cfg.y = var_InheritInteger (vd, "video-y"); wnd_cfg.width = vd->cfg->display.width; wnd_cfg.height = vd->cfg->display.height;