[MPlayer-cvslog] r31289 - in trunk: Changelog libvo/x11_common.c
reimar
subversion at mplayerhq.hu
Sun May 30 21:14:19 CEST 2010
Author: reimar
Date: Sun May 30 21:14:18 2010
New Revision: 31289
Log:
Change code to let Window Manager chose window location by default.
Modified:
trunk/Changelog
trunk/libvo/x11_common.c
Modified: trunk/Changelog
==============================================================================
--- trunk/Changelog Sun May 30 18:50:02 2010 (r31288)
+++ trunk/Changelog Sun May 30 21:14:18 2010 (r31289)
@@ -29,6 +29,8 @@ MPlayer (1.0)
* remove vf_yuy2, functionality is replaced by -vf format=yuv2
Drivers:
+ * X11: Window manager choses Window position by default.
+ Add geometry=50%:50% to your configuration to get the old behaviour.
* -vo md5sum md5 calculation changed so output matches FFmpeg's -f framemd5
* Support for more formats in OpenGL video output drivers (different YUV
subsampling, 16 bit per component)
Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c Sun May 30 18:50:02 2010 (r31288)
+++ trunk/libvo/x11_common.c Sun May 30 21:14:18 2010 (r31289)
@@ -1120,7 +1120,9 @@ void vo_x11_create_vo_window(XVisualInfo
XSelectInput(mDisplay, vo_window, StructureNotifyMask);
hint.x = x; hint.y = y;
hint.width = width; hint.height = height;
- hint.flags = PPosition | PSize;
+ hint.flags = PSize;
+ if (geometry_xy_changed)
+ hint.flags |= PPosition;
XSetStandardProperties(mDisplay, vo_window, title, title, None, NULL, 0, &hint);
if (!vo_border) vo_x11_decoration(mDisplay, vo_window, 0);
// map window
@@ -1137,6 +1139,8 @@ void vo_x11_create_vo_window(XVisualInfo
ButtonPressMask | ButtonReleaseMask | ExposureMask);
}
if (vo_ontop) vo_x11_setlayer(mDisplay, vo_window, vo_ontop);
+ if (!geometry_xy_changed)
+ vo_x11_update_geometry();
vo_x11_nofs_sizepos(vo_dx, vo_dy, width, height);
if (!!vo_fs != !!(flags & VOFLAG_FULLSCREEN))
vo_x11_fullscreen();
More information about the MPlayer-cvslog
mailing list