[vlc-commits] commit: XCB: set window provider requested position from video-x and video-y ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sat Mar 6 17:39:17 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar  6 18:36:21 2010 +0200| [764088d5b7cd19da4aa29d133ff3ad0905cfc716] | committer: Rémi Denis-Courmont 

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=764088d5b7cd19da4aa29d133ff3ad0905cfc716
---

 modules/video_output/xcb/common.c |    2 ++
 modules/video_output/xcb/glx.c    |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/xcb/common.c b/modules/video_output/xcb/common.c
index 9b714f6..d7e90d2 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 1b80b3d..573ea24 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;
 



More information about the vlc-commits mailing list