summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-24 21:09:21 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-24 21:09:21 +0000
commit6332d6bbe9bf7104ca77b59f3c4abb5f5ff25ec7 (patch)
treee995e4e1ed25a005b9ddd59c82d799cbb8442092 /libvo
parente3c7c5dc1158be35604617adb51d58986ffee6d4 (diff)
downloadmpv-6332d6bbe9bf7104ca77b59f3c4abb5f5ff25ec7.tar.bz2
mpv-6332d6bbe9bf7104ca77b59f3c4abb5f5ff25ec7.tar.xz
dont mess with the window position in xinerama when -geometry changes it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11997 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/geometry.c3
-rw-r--r--libvo/geometry.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/libvo/geometry.c b/libvo/geometry.c
index e8aafcbe5d..d3d68c8ca7 100644
--- a/libvo/geometry.c
+++ b/libvo/geometry.c
@@ -9,6 +9,7 @@
char *vo_geometry = NULL;
// set when either width or height is changed
int geometry_wh_changed = 0;
+int geometry_xy_changed = 0;
#define RESET_GEOMETRY width = height = xoff = yoff = xper = yper = -1;
@@ -85,6 +86,8 @@ int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh)
if( width != -1 || height != -1)
geometry_wh_changed = 1;
+ if( xoff != -1 || yoff != -1)
+ geometry_xy_changed = 1;
}
return 1;
}
diff --git a/libvo/geometry.h b/libvo/geometry.h
index dab4aa5208..fae10fc508 100644
--- a/libvo/geometry.h
+++ b/libvo/geometry.h
@@ -4,5 +4,6 @@
extern char *vo_geometry;
extern int geometry_wh_changed;
+extern int geometry_xy_changed;
int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh);
#endif /* !__GEOMETRY_H */