summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-30 19:14:18 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-30 19:14:18 +0000
commit233c74254ec619edffcd9a7119e124fddd4cbda3 (patch)
tree3b448bfddc8644f5951672633ce37c8bb04c4273 /libvo
parent326ec0073300ea43433586abed5cf2d4f7788e99 (diff)
downloadmpv-233c74254ec619edffcd9a7119e124fddd4cbda3.tar.bz2
mpv-233c74254ec619edffcd9a7119e124fddd4cbda3.tar.xz
Change code to let Window Manager chose window location by default.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31289 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 5725beb90b..6d1cbfbce6 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1120,7 +1120,9 @@ void vo_x11_create_vo_window(XVisualInfo *vis, int x, int y,
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 *vis, int x, int y,
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();